Opened 14 years ago
Closed 14 years ago
#1968 closed defect (fixed)
Parsing of negative numbers broken in I18N
Reported by: | guest | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Internationalization | Version: | 0.4.1rc1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
This gives a wrong result:
dojo.i18n.number.parse("-12.1", "en"); -11.9
Note: for negative numbers, the fractional part should be subtracted, not added.
Regards Frank Felix ([email protected]…)
Note: See
TracTickets for help on using
tickets.
that experimental code is getting rewritten for 0.5, but I'll make sure this is among the tests