Reputation: 26556
Im not sure what this type of number is '1.3122278540256E+18' but how can i expand it into an integer?
Thanks!!
Upvotes: 0
Views: 610
Reputation: 53861
It is in IEEE floating point notation. It is a number too large to be calcuated exactly, but move the decimal +18 places to the right to get the integer.
Upvotes: 2
Reputation: 11236
This is scientific notation.
E+18 is shorthand for 10^18. In this case, the number you see is 1,312,227,854,025,600,000.
Upvotes: 1