当调用toString时,我试图从Number继承来重写toString方法以输出固定小数点: Number.call(this, valueutil.inherits(FixedNumber, Number);
return this.toFixedTypeError: Number.prototype.valueOf is not generic
at FixedNumber.val
const Big = require("big.js"); // https://www.npmjs.com/package/big-js
constructor(namethis.sell.minus(this.buy);}; 这是因为我可以使用以下命令创建一个新对象: a = new Trade("Widget", 123.12345678, 321.87654321)
a.buy.toFixed</em