Problems? Is your data what you think it is? | |
PerlMonks |
Re: Math 101 anyone?by gawatkins (Monsignor) |
on Oct 12, 2004 at 20:10 UTC ( [id://398675]=note: print w/replies, xml ) | Need Help?? |
Hello smcone,
You can use the sprintf function to round your numbers to 2 decimal places, something like this:. perl -e "print sprintf ('%.2f', (100.10-100));"Thanks, Greg W.
In Section
Seekers of Perl Wisdom
|
|