By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,647 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,647 IT Pros & Developers. It's quick & easy.

disable Scientific notation

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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.