consider this simple one-liner where the output should presumably be 0:
A very small number, indeed, but not zero.$ perl -e 'print .1 + .2 - .3, "\n"' 5.55111512312578e-17
BTW, the same in the Perl 6 REPL:
> say .1 + .2 - .3 0
In reply to Re: Floating point issue
by Laurent_R
in thread Floating point issue
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |