I think it would be great to add support for Java's BigDecimal in
Rhino, so we could do more accurate arithmetic. There has been a lot
of discussion in the EcmaScript working group on adding decimal
support to ES and Sam Ruby has a working implementation in
SpiderMonkey to reference. It would be great to see this implemented
in Rhino, or at least add support for maintaining BigDecimal's
precision when doing arithmetic operators, which I believe wouldn't be
too difficult, mainly adding some extra branches in ScriptRuntime to
handle BigDecimal.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino