« Return to Thread: Error rounding float value with Zend_Locale_Format::toNumber()

Error rounding float value with Zend_Locale_Format::toNumber()

by umpirsky :: Rate this Message:

Reply to Author | View in Thread

Hi.

I tried to round 98.99999625 value with Zend_Locale_Format::toNumber() and I get result 98, I expected 99.00.

I've just added new issue http://framework.zend.com/issues/browse/ZF-7170. Do you think I'm wrong somewhere in my code?

Regards,
Sasa Stamenkovic.

 « Return to Thread: Error rounding float value with Zend_Locale_Format::toNumber()