[wp-trac] [WordPress Trac] #10555: number_format_i18n function doesn't check if the number is float or not before doing the formating
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 23 02:41:34 UTC 2010
#10555: number_format_i18n function doesn't check if the number is float or not
before doing the formating
------------------------------------+---------------------------------------
Reporter: chombium | Owner: nbachiyski
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.0
Component: i18n | Version: 2.9
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback |
------------------------------------+---------------------------------------
Comment(by brentes):
Thanks Westi!
Needs a slight change though. Line 139 casts the number as an integer. So
number_format_i18n( 1123.5813, 2) returns 1123.00, when you'd expect
1123.58.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10555#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list