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 =)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

joy.simpsonRank #4,292 · 353 reputationPosted Sep 18, 2004, 1:23 PM EDT
Adam ErstelleRank #3,005 · 479 reputationPosted Sep 20, 2004, 7:06 AM EDT