Problem with DOUBLE in Visual C #

0

The problem is that I need the DOUBLE not to print with scientific notation. How can I do that? What I want is that the result no matter how long it is printed.

    
asked by Máxima Alekz 05.07.2016 в 01:00
source

2 answers

1

The data type double is a floating point number; when it exceeds a specific value, it uses scientific notation forcefully. If you need to use very large integers or rationals, I recommend you see these classes / libraries:

I have not tried them; but I hope they serve you. Good luck!

    
answered by 05.07.2016 / 01:51
source
1

You can use the overload of the ToString method on which specifies the format.

For example:

double d = Double.Max;
d.ToString("F");
    
answered by 08.07.2016 в 12:52