Hi,

I've noticed that rounding in the reference implementation is implemented using
IEEE roundTiesToEven, but in browsers .5 values appear to round towards zero.
Although roundTiesToEven is desirable from a computational point of view,
there's likely a significant risk that changing to this method could break some
existing ECMAScript.

Math.round(1.5) === Math.round(2.5) // true in RI, false in browsers

Regards,
Jonathan

_______________________________________________
Es4-discuss mailing list
Es4-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to