[JavaScript][BigDecimal] java.lang.RuntimeException: Unknown call signature for obj = new java.math.BigDecimal: object
When using the JavaScript bigdecimal.js library, it seems that an exception is thrown when trying to create an instance with a non-numeric value.
var bigdecimal = require("bigdecimal");
var obj = {};
new bigdecimal.BigDecimal(obj);
// java.lang.RuntimeException: Unknown call signature for obj = new java.math.BigDecimal: object
The lesson here is to properly check the values passed as arguments to new bigdecimal.BigDecimal().
・how do i set a math context? · Issue #1 · iriscouch/bigdecimal.js
That’s all from the Gemba.