📜  big.js - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:15.938000             🧑  作者: Mango

代码示例1
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));