Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: portably finding max integer (bits)

by tye (Sage)
on May 25, 2009 at 14:33 UTC ( #766045=note: print w/ replies, xml ) Need Help??

in reply to Re^2: portably finding max integer
in thread portably finding max integer

Yes, Perl guarantees that IV will be at least 32 bits. And you will have better luck building your Perl so that NVs have more mantissa bits than IVs (if you have 64-bit IV, then use 'long double' for NV) as making allowances for IV being better for some values and NV being better for other values is quite complicated (doomed to fail in some cases, I say) and has also only been introduced to Perl fairly recently.

- tye        

Comment on Re^3: portably finding max integer (bits)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-10-07 21:59 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (201 votes), past polls