Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Keep It Simple, Stupid
 
PerlMonks  

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

by kennethk (Monsignor)
on Feb 23, 2010 at 18:46 UTC ( #824918=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (1 .. 2**10) {
        my $size = 2**$_;
        print "Fail $_ high\n" if (log((2**$_ - 1)) / log(2) ) == $_;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-04-19 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls