Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: sprintf() returning incorrect valueby toolic (Bishop) |
on Jul 15, 2015 at 12:59 UTC ( [id://1134888]=note: print w/replies, xml ) | Need Help?? |
You didn't show us how you assigned $nfc_amt. Perhaps...
Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)?
In Section
Seekers of Perl Wisdom
|
|