Success! Looks like we've fixed this one. According to our records the fix was applied for
a recent build.
Ext.util.Format.currency decimals ignored when set to 0
Ext.getVersion() => 4.0.7
I'll try to get straight to the point. If you do:
... the output is same as
Ext.util.Format.currency(100, '$', 0);
... and it reads "$100.00" instead of "$100", which is caused by this line in Ext.util.Format, currency function definition:
Ext.util.Format.currency(100, '$', Ext.util.Format.currencyPrecision);
Obviously, decimals should be tested with a stricter comparison operator, such as
decimals = decimals || Ext.util.Format.currencyPrecision;
decimals = Ext.isNumber(decimals) ? decimals : Ext.util.Format.currencyPrecision;
Oh grgur.... reporting bugs is fun huh? Looks like it was fixed already tho!