Re: [Hampshire] Python multiplicaton

Top Page

Reply to this message
Author: Peter Salisbury
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Python multiplicaton
These things are usually rounding errors from the underlying binary
representation. OTOH I have version 2.5.4 and I get the answer 22.8!
HTH, Peter

2010/1/14 Owain Clarke <simbobo@???>:
> Could anyone explain to me why 3*7.6 gives me 22.799999999999997? I have
> Python 2.5.2
>
> Cheers
>
> Owain Clarke
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------
>