Open appetere opened 11 years ago
Could the code check for null values?
At the moment a null value is treated as a zero, which can be misleading:
// Choose which format to use for this value (pos, neg or zero): var useFormat = val > 0 ? formats.pos : val < 0 ? formats.neg : formats.zero,
I can work around this by checking for null before calling the method, but would be nice to handle it within accounting.js.
Thanks,
Steve
I second this and think it could be resolved by pull #57 as we could test for number vs NaN and act accordingly.
Could the code check for null values?
At the moment a null value is treated as a zero, which can be misleading:
I can work around this by checking for null before calling the method, but would be nice to handle it within accounting.js.
Thanks,
Steve