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

Re: Re: Re: Bug? 1+1 != 2

by BrowserUk (Pope)
on Jun 19, 2003 at 11:52 UTC ( #267145=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        1 x 1/2
    +   0 x 1/4
    +   1 x 1/8
    -----------
            5/8 = 0.625
    
  2. or download this
    1/2          (0.500000000000)    0
    1/4          (0.250000000000)    0
    ...
    1/4096       (0.000244140625)    0
    ---------------------------------------------------
                                          0.0986328125
    
  3. or download this
     perl> printf "%.32f\n", 0.1
    0.100 000 000 000 000 010 000 000 000 000 00
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-12-25 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (159 votes), past polls