Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 chanting in the Monastery: (10)
As of 2014-12-29 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (190 votes), past polls