ES Decimal status

waldemar at waldemar at
Thu Sep 25 10:23:55 PDT 2008

> I believe that we have a solution that everybody might not find ideal,
> but hopefully can live with, which I will outline below with examples:
> typeof(1m) === "decimal"
> 1.1m === 1.10m
> (1.10m).toString() === "1.10"
> (1e+3m).toString() === "1000"
> Additionally, there will be another method exposed, say toSciString,
> which will produce a value which will round trip correctly, using
> scientific notation when necessary.

This doesn't satisfy any of the criteria we want.  It now breaks *both*
arrays and round-tripping.


More information about the Es-discuss mailing list