int - convert very big exponential to decimal in c# -


5.35754303593134e+300 53575430359313400000000000000000000 ... 000000000

can because number large?

i have tried:

using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks;  namespace consoleapplication2 {     class program     {         static void main(string[] args)         {             double s = double.parse((system.math.pow(2, 999)).tostring(), system.globalization.numberstyles.float);             console.writeline("value={0}", s);             console.readkey();         }     } } 

do 1 of following,

console.writeline(s.tostring("n0")); //comma separated console.writeline(s.tostring("f0"));  

both works.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -