Formatting a single to two decimal places
I need help in trying to format a single to only 2 decimal places
Dim d as single
Dim i as integer
Dim p as integer
i = 2000
p = 34567
d = (i / p )
label1.text = d
Now the answer is 0.057858651314837851129690166922209, but I only want to show .06 so I also need to round up the second decimal place as well. I cannot seem to find good documentation on this, and I know that this seems like a total newbie question, but I am so lost it is not even funny =)