Revisiting Decimal

Brendan Eich brendan at mozilla.com
Thu Jan 15 10:26:16 PST 2009


On Jan 15, 2009, at 9:47 AM, Kris Zyp wrote:

> Where is the loss coming from?

Decimal-using peer S1 encodes

{p:1.1, q:2.2}

Double-using peer C1 decodes, adds, and returns

{p:1.1, q:2.2, r:3.3000000000000003}

The sender then checks the result using decimal and finds an error.  
Meanwhile the same exchange between S1 and decimal-using peer C2  
succeeds without error.

/be



More information about the Es-discuss mailing list