469,318 Members | 1,914 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,318 developers. It's quick & easy.

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 6767
"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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.