id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking
8699 dojo.number.round only supports 13 significant digits but the docs say 14 Douglas Hays Adam Peller "dojo.number.round is documented to support 14 significant digits and should support at least 14 since JavaScript supports 15, but there's an error in the function that causes only 13 to be supported.
{{{
var delta = Math.pow(10, -14 + wholeFigs);
}}}
should be
{{{
var delta = Math.pow(10, -15 + wholeFigs);
}}}
Thus dojo.number.round(923456789012.37,0,2.5) should return 923456789012.25 but it currently returns 923456789012.50 which is wrong. Similarly dojo.number.round(923456789012.37,2) currently returns 923456789012.38 but it should be 923456789012.37
The suggested fix corrects these problems but doesn't break the other sample calculations. Ticket #8692 is dependent on this change." defect closed high 1.3 Core 1.3.0b1 fixed