Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Stringification of FP numbers.by syphilis (Archbishop) |
on Jun 12, 2009 at 23:58 UTC ( [id://771139]=note: print w/replies, xml ) | Need Help?? |
This would make sense if "100000.0" was printed as 1e05 Yes - I, too, would prefer to see the same rule applied to both leading and trailing zeroes. Unfortunately, that's not the way it's being done. Another way of avoiding the scientific notation (no matter how many leading zeroes) is to convert to a Math::BigFloat object: (Replace double quotes with single quotes on nix.) Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|