in reply to Re^4: Trying to translate overflowing JS code to Perl
in thread Trying to translate overflowing JS code to Perl
But you're Math::IntAny test script implies that you are seeing: 2147483648 2147483648
Sorry Rob if I was not clear. The test's expected value is what JS outputs (therehore what I expect if I want to simulate JS behaviour). Both tests fail in linux (and as you demonstrated above).
I have edited my main post to say that I have asked some more general question at SO a couple of hours ago here: https://stackoverflow.com/questions/77584450/emulate-javascripts-32bit-signed-integer-arithmetic-to-c-or-perl-some-discr and just now I see there are some responses.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Trying to translate overflowing JS code to Perl
by syphilis (Archbishop) on Dec 02, 2023 at 01:52 UTC |