Opened 13 years ago
Closed 13 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: |
Description
This is due to a "bad" default in dojo\cldr\nls\number.js
'decimalFormat':"#,##0.###",
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"})))
schallm
Change History (3)
comment:1 Changed 13 years ago by
Milestone: | → 1.2 |
---|---|
Owner: | changed from anonymous to Adam Peller |
comment:2 Changed 13 years ago by
Reporter: | changed from guest to mike.schall |
---|
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Might make more sense to have dojo.number default to places:Infinity