Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by syphilis (Archbishop)
on Feb 17, 2015 at 09:41 UTC ( [id://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),
Rob

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found