[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3: How to get integer from out of range float?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 6 Aug 2014 14:50:48 -0300
> Use case: Mixing FP math and bitwise ops, for example SHA256 [1]
>
> [1] https://gist.github.com/katlogic/1cfe0dee78fba51324b4
BTW, for this particular use, I think it would be better to put the
numbers literally in the code, as hexadecimal integer literals, and
avoid float computations altogether.
-- Roberto