Opened 14 years ago

Closed 14 years ago

#6536 closed defect (fixed)

dojo.number.parse("1.2345") returns NaN

Reported by: mike.schall Owned by: Adam Peller
Priority: high Milestone: 1.2
Component: General Version: 1.1.0
Keywords: Cc:
Blocked By: Blocking:


This is due to a "bad" default in dojo\cldr\nls\number.js


This basically defaults decimal to max of 3 digits to the right of the decimal.

I tried to pass 0,Infinity as places with the same issue. Using 99 as a workaround.

         dojo.number.parse(value,{places: "0,99"}))) 


Change History (3)

comment:1 Changed 14 years ago by Adam Peller

Milestone: 1.2
Owner: changed from anonymous to Adam Peller

Might make more sense to have dojo.number default to places:Infinity

comment:2 Changed 14 years ago by Adam Peller

Reporter: changed from guest to mike.schall

comment:3 Changed 14 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [14524]) number parsing allows unlimited places when pattern is not provided explicitly. Fixes #6536

Note: See TracTickets for help on using tickets.