in reply to Re: substitution "0" in decimals
in thread substitution "0" in decimals
It may not matter for the OP, but at least he should be made aware of when using this trick.perl -wE '$d1 = "1230.1200"; $d1 = $d1 + 0; printf "%.20f\n", $d1' 1230.11999999999999999556
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: substitution "0" in decimals
by LanX (Saint) on Dec 08, 2009 at 11:57 UTC | |
by JavaFan (Canon) on Dec 08, 2009 at 12:57 UTC | |
by LanX (Saint) on Dec 08, 2009 at 13:22 UTC |