Can doubles be used to represent a 64 bit number without loss of precision

Posted by Kop on Stack Overflow See other posts from Stack Overflow or by Kop
Published on 2009-11-24T11:16:17Z Indexed on 2010/04/02 6:23 UTC
Read the original article Hit count: 244

Filed under:
|
|
|

I want to use lua (that internally uses only doubles) to represent a integer that can't have rounding errors between 0 and 2^64-1 or terrible things will happen.

Is it possible to do so?

© Stack Overflow or respective owner

Related posts about lua

Related posts about c