On Nov 11, 2007, at 4:11 AM, liorean wrote:

> On 11/11/2007, Jonathan Watt <[EMAIL PROTECTED]> 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.

Don't worry, that's not an intended change to double rounding  
(decimal is new and has more rounding control, but for double we're  
stuck).

It looks like an unintended consequence of using the SML-NJ Real64  
library. I filed http://bugs.ecmascript.org/ticket/301. Thanks,  
Jonathan, for pointing this out,

/be

_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to