123.3 + 0.1 is 123.3999999999 ?

Asun Friere afriere at yahoo.co.uk
Fri May 16 01:33:45 EDT 2003


anton at vredegoor.doge.nl (Anton Vredegoor) wrote in message news:<ba0jfo$7kh$1 at news.hccnet.nl>...
>
> 
> Now the question is: Can Perl give the value it *really* uses
> internally? :->
> 
> Anton


#!/usr/bin/perl
$x = 123;
$y = 0.1;
printf "%.14f\n" , $x+$y;




More information about the Python-list mailing list