http://qs1969.pair.com?node_id=1116954


in reply to Re: 64-bit division anomolies (Solved.)
in thread 64-bit division anomolies (Solved.)

So I've submitted a bug report against integer for this - in case there's someone who cares enough to fix it.

Turns out that the integer pragma only works with integer values in the range -(2**63) .. (2**63-1).
On 32-bit perls that range becomes -(2**31) .. (2**31-1).
Yes - it's that crappy, and I doubt that anyone cares.

It's all there in the integer docs if one reads that documentation properly - which I didn't do.

Wiping egg off face (... yet again),
Rob
  • Comment on Re^2: 64-bit division anomolies (Solved.)

Replies are listed 'Best First'.
Re^3: 64-bit division anomolies (Solved.)
by salva (Canon) on Feb 17, 2015 at 09:47 UTC
    But still the unnecessary conversion to float when dividing two unsigned integers looks like a bug to me.

    BTW, the multiplication is also affected.