roundTiesToEven

liorean liorean at gmail.com
Sun Nov 11 04:11:28 PST 2007


On 11/11/2007, Jonathan Watt <jwatt at jwatt.org> wrote:
> 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.

That's really serious breakage - books, tutorials, references and real
world code all take for granted that halves alway round up.
-- 
David "liorean" Andersson



More information about the Es4-discuss mailing list