Opened 13 years ago

Closed 12 years ago

#2860 closed defect (fixed)

currency values currently have to have an exact number of decimal places to be valid

Reported by: Douglas Hays Owned by: Adam Peller
Priority: high Milestone: 0.9beta
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

Running test_validate.html, in the USD currency box, the value $1 is flagged as an error and replaced with $NaN.00. The problem seems to be that fractional is set to true in dojo.number._parseInfo. I think it should be [true,false] for currencies.

Change History (2)

comment:1 Changed 13 years ago by Adam Peller

(In [8356]) format returns null for invalid input. Refs #2860

comment:2 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [8774]) Implement options.fractional, set to [true,false] by default for currencies. Fixes #2862, #2860

Note: See TracTickets for help on using tickets.