in reply to Re: Multiply with 100 in perl
in thread Multiply with 100 in perl
Floating point arithmetic has limited accuracy try bignum library.
perl -Mbignum -e 'printf"%.20F\n", 75.600 * 100;'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Multiply with 100 in perl
by Anonymous Monk on Nov 12, 2015 at 01:39 UTC |