It's the same reason as for toFloat().
But the used number format is different for each of the functions.
toInteger(), toFloat() and toNumber() all define different formats and
therefor they all handle number differently. When this would not be the
case, then there would have been no reason to create 3 methods. :-)
You could get the same result within toNumber() when you define that the
number format has to be rounded instead of truncated.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com----- Original Message -----
From: "umpirsky" <
umpirsky@...>
To: <
fw-general@...>
Sent: Wednesday, July 01, 2009 6:18 PM
Subject: Re: [fw-general] Error rounding float value with
Zend_Locale_Format::toNumber()