Click to See Complete Forum and Search --> : shortening a float
bob323
Oct 5th, 2002, 02:27 AM
I have a float value (say 3.1223343) and I want to round it so that it displays as say 3.12.... any ideas?
Edneeis
Oct 5th, 2002, 03:36 AM
float x=3.1223343F;
MessageBox.Show(this,x.ToString("#.##"));
bob323
Oct 5th, 2002, 12:03 PM
perfect that makes sense, thanx!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.