Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
The stupid question is the question not asked
 
PerlMonks  

Re: May I be bitten by floating point arithmetic in the following restricted case?

by BrowserUk (Pope)
on Feb 23, 2010 at 19:03 UTC ( #824924=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    printf "-1:%2d %30f:%d +1:%2d\n", 
        (frexp( $_ - 1 ))[1], $_, (frexp( $_ ))[1], (frexp( $_ +1 ))[1] 
    ...
    -1:63     4611686018427387900.000000:63 +1:63
    -1:64     9223372036854775800.000000:64 +1:64
    -1:65    18446744073709552000.000000:65 +1:65
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-04-21 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls