$ perl -e 'printf "%.20f\n", 75.600 * 100' 7559.99999999999909050530 $ perl -e 'printf "%.0f\n", 75.600 * 100' 7560
See What Every Programmer Should Know About Floating-Point Arithmetic for more information.
In reply to Re: Multiply with 100 in perl
by choroba
in thread Multiply with 100 in perl
by irata73
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |