2
Answers

Formatting a single to two decimal places

bryant_buckland

bryant_buckland

20y
2.3k
1
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 =)
Answers (2)