Hello,
I was wondering how can I get the two numbers right of the decimal period? If I had 2.85874125639, I would want to get this: 2.86 since it was rounded...
Thanks in advance!
Printable View
Hello,
I was wondering how can I get the two numbers right of the decimal period? If I had 2.85874125639, I would want to get this: 2.86 since it was rounded...
Thanks in advance!
Am I correct in assuming you just want to round the number?
vb.net Code:
MessageBox.Show(Math.Round(2.85874125639D, 2).ToString())
OMG, *slap*, thanks a lot.
Someone needs caffeine maybe? ;)
Yeah, would have done the trick :D.