I have a float value (say 3.1223343) and I want to round it so that it displays as say 3.12.... any ideas?
Printable View
I have a float value (say 3.1223343) and I want to round it so that it displays as say 3.12.... any ideas?
VB Code:
float x=3.1223343F; MessageBox.Show(this,x.ToString("#.##"));
perfect that makes sense, thanx!