Hi, I have some JavaScript which evaluates user defined expressions on the file. These expressions are simple mathematical operations such as add, subtract, multiply and divide and due to precision I require the use of BigDecimal. However, when I attempt to call the appropriate method to perform the mathematical operation between two BigDecimal values within the JavaScript it tells me that it is looking for a function. For example,
JavaScript: var result = SourceAmount.multiply(Rate); This tells me there is no function 'multiply' defined. The 'SourceAmount' and 'Rate' are passed as BigDecimal objects in the script engines context. Any help will greatly be appreciated _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
