disable Scientific notation

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
R

Ryan Liu

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
 
Ryan Liu said:
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.
 
Hi,

Ryan Liu said:
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
 
Back
Top