Quote:
Originally Posted by bezusheist
|
You're right, 2^64 can actually be stored exactly, but e.g. 2^64-1 can't (it will be stored as 2^64).
Also note that printf("%.0f") can't output such big integers accurately, which is why 2^64 appears as 18446744073709552000, eventough the correct value is stored internally. Again, this is not a bug, but simply how things work (IMHO, YMMV).