Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

big.js

const Big = require('big.js');

var val = new Big(0.0);
var amount = new Big(2.55);

var sum = val.plus(amount).times(100000);

console.log(sum.toFixed(2));
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+3 =