Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: 64-bit division anomolies (Solved.)

by syphilis (Archbishop)
on Feb 17, 2015 at 09:41 UTC ( #1116954=note: print w/replies, xml ) Need Help??

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),
  • 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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116954]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-06-09 07:07 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (35 votes). Check out past polls.