[Israel.pm] perl arithmetic

Yuval Kogman lists at woobling.org
Sun Apr 18 08:22:29 PDT 2004


On Sun, Apr 18, 2004 at 18:05:32 +0300, Pinkhas Nisanov wrote:

> sorry guys, but on my perl 5.8.1:
> perl -e 'print int 100*4.56, "\n";'
> 
> gives me:
> 455

I did not post to show that my perl was right or something, but to
stress how unexpected the output can be.

-- 
 ()  Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418  perl hacker &
 /\  kung foo master: /me throws bonsai kittens: neeyah!!!!!!!!!!!!!!!!



More information about the Perl mailing list