Have you read the Standard Floating-Point Disclaimer, as is part of Math::Round?
Your situation may be one where it applies.
POSIX::ceil and POSIX::floor don't do rounding, they truncate towards an integer number. Maybe you can explain what results you expect and what results you get. Also, please supply code and data we can use to easily replicate your situation.
In reply to Re: Math::round not rounding correctly
by Corion
in thread Math::round not rounding correctly
by bulrush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |