472,119 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

disable Scientific notation

In C#, for a large float (9 digitals), how can I disable Scientific
notation. When it auto convert to Scientific notation, I lost accuracy.

Thanks a lot!
Ryan
May 8 '06 #1
2 7030
"Ryan Liu" <ad********@online.sh.cn> wrote in message
news:Of**************@TK2MSFTNGP04.phx.gbl...
In C#, for a large float (9 digitals), how can I disable Scientific
notation. When it auto convert to Scientific notation, I lost accuracy.
You can't. A float has a certain number of digits accuracy so larger numbers
will lose some accuracy (or small numbers with lots of decimals). You could
use double or long. Note that double is not guarenteed to preserve your
accuracy either but will be better.

Thanks a lot!
Ryan

May 8 '06 #2
Hi,

"Ryan Liu" <ad********@online.sh.cn> wrote in message
news:Of**************@TK2MSFTNGP04.phx.gbl...
In C#, for a large float (9 digitals), how can I disable Scientific
notation. When it auto convert to Scientific notation, I lost accuracy.


Can you use double ? or even better, use Decimal

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
May 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Woodster | last post: by
1 post views Thread by masoud bayan | last post: by
7 posts views Thread by Dustan | last post: by
9 posts views Thread by Joe Attardi | last post: by
7 posts views Thread by grinder | last post: by
2 posts views Thread by Greg | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.