Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 browsing the Monastery: (12)
As of 2014-10-01 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (38 votes), past polls