See the docs on System.Globalization.NumberFormatInfo:
r, R - Roundtrip format, which ensures that numbers converted
to strings will have the same value when they are converted back to numbers.
So if you use "R", then you can be sure the number will convert right back
into the number you have. For currency, don't use a float. Use a decimal.
-Michael
MVP
"V. Jenks" <sp**@scientifik.com> wrote in message
news:18*****************************@phx.gbl...
I'm having a problem with the Convert.ToSingle and the
O:C formatting rounding off my floating-point numbers.
When I .ToString a float, it rounds the number. It also
rounds it if I use the "C" or "F" format strings (i.e.
num.ToString("C"))
How can I accurately display a float/currency value w/o
it being rounded off?
Thanks!
-v