SOURCE

function subtract(number1, number2) {
  return Number(math.subtract(math.bignumber(number1), math.bignumber(number2)))
};
console.log(subtract(0.3, 0.1));

function add(number1, number2) {
  return Number(math.add(math.bignumber(number1), math.bignumber(number2)))
};
console.log(add(0.1, 0.2));

function multiply(number1, number2) {
  return Number(math.multiply(math.bignumber(number1), math.bignumber(number2)))
};
console.log(multiply(4.10,100))

function divide(number1, number2) {
  return Number(math.divide(math.bignumber(number1), math.bignumber(number2)))
};
console.log(divide(6.10,0.1))
console 命令行工具 X clear

                    
>
console