Shouldn't you use toFloat when you want to have a float value ?

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "umpirsky" <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 01, 2009 4:04 PM
Subject: [fw-general] Error rounding float value with Zend_Locale_Format::toNumber()



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.
--
View this message in context: http://www.nabble.com/Error-rounding-float-value-with-Zend_Locale_Format%3A%3AtoNumber%28%29-tp24290360p24290360.html Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to