Is there a way to use a more precise “number” implementation in JavaScript in GraalJS?
I have a Java application where the user can write (mostly simple) JavaScripts to define how to calculate certain numbers. In Java those numbers are BigDecimal to avoid floating point inaccuracies.
I want to mimic the behaviour of BigDecimal in JavaScript without the user having to know anything about it.
Ideally I want a simple scipt which is evaluated in GraalJS that looks like this