Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Locale
-
Labels:None
Description
Negative numbers are not treated properly by toInteger(). For example, try to format -4.99 to an integer. toInteger returns -3, not -5. However, pass in 4.99, and toInteger does return 5. Looks like an off-by-one error in there somewhere, but I wasn't able to find it by looking for a little while.
Would just like to point out that integers (mathematically speaking) include all natural numbers, zero, and their negative counterparts.
Looks for me like a duplication of
ZF-3473andZF-5908which are already fixed for the next minor release as it's a BC in the results.If you need a quick fix, simply use Zend_Locale and it's subdirectory from trunk which is the next 1.8 release.
ZF-3473andZF-5908which are already fixed for the next minor release as it's a BC in the results. If you need a quick fix, simply use Zend_Locale and it's subdirectory from trunk which is the next 1.8 release.