The patterns do not behave as expected? When using #, the number should not substitute a 0 in the price, unless it is used with #0
This is correct:
OSREC.CurrencyFormatter.format(0.45, {pattern: "#,##0.## !"})
>> "0.45 $"
Incorrect (?):
OSREC.CurrencyFormatter.format(0.45, {pattern: "#,##.## !"})
>> "0.45 $"
Expected:
Incorrect (?):
OSREC.CurrencyFormatter.format(120, {pattern: "#,##0.##00 !"})
>> "120.0000 $"
Expected:
Incorrect (?):
OSREC.CurrencyFormatter.format(120, {pattern: "#,##0.## !"})
>> "120.00 $"
Expected:
Is this not what was planned for the patterns?
The patterns do not behave as expected? When using
#, the number should not substitute a0in the price, unless it is used with#0This is correct:
Incorrect (?):
Expected:
Incorrect (?):
Expected:
Incorrect (?):
Expected:
Is this not what was planned for the patterns?