Opened 15 years ago

Closed 15 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:


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]…)

Change History (2)

comment:1 Changed 15 years ago by Adam Peller

Milestone: 0.5

that experimental code is getting rewritten for 0.5, but I'll make sure this is among the tests

comment:2 Changed 15 years ago by Adam Peller

Resolution: fixed
Status: newclosed

see src/number.js

Note: See TracTickets for help on using tickets.