Re: Problems with big integers and some Hollywood operators
Posted: Wed Jul 15, 2020 9:26 pm
I have now added some big number support for Shl(), Shr(), and Sar() although it's not possible to support full 64-bit integers because of what I wrote earlier. But at least they can handle numbers that are bigger now. For compatibility reasons a new optional argument had to be introduced that puts these commands into big number mode.
Code: Select all
- New: Shl(), Shr(), and Sar() accept an optional parameter now that, when set to TRUE, allows you to put
these functions into "big number" mode; this means that they will be able to operate on numbers larger
than 2^32-1; keep in mind, though, that full 64-bit integers aren't supported in Hollywood because its
numeric datatype is a 64-bit floating point one; while this can store very very large numbers too it's
of course not possible to store the full 64-bit integer range because it needs some bits to store the
fractional parts