//减法 function test4() { var a = 1.5; var b = 2.5; var c = Decimal(a).sub(Decimal(b)); console.log("结果是" + c.toNumber()); }
1、语法是sub