The stupid question is the question not asked | |
PerlMonks |
Re: Math::round not rounding correctlyby BillKSmith (Monsignor) |
on Dec 23, 2014 at 22:38 UTC ( [id://1111248]=note: print w/replies, xml ) | Need Help?? |
Any rounding discipline is a compromise. The IEEE rounding is at least "good enough" for almost all applications. If you are certain that it is not for yours, you probably know enough to write a special one for this application only. What about negative numbers? Have you considered the floating point issue correctly?
Bill
In Section
Seekers of Perl Wisdom
|
|