Opened 13 years ago

Closed 13 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 (ffd@…)

Change History (2)

comment:1 Changed 13 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 13 years ago by Adam Peller

Resolution: fixed
Status: newclosed

see src/number.js

Note: See TracTickets for help on using tickets.