Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Math::round not rounding correctlyby bulrush (Scribe) |
on Dec 23, 2014 at 20:22 UTC ( [id://1111230]=note: print w/replies, xml ) | Need Help?? |
Hmm. Well this seemed to work in this case. I'll test it out.
perl -e 'print int(sprintf("%.10f",(3010*1.15))+0.5)."\n"'
In Section
Seekers of Perl Wisdom
|
|