Closed windkind88 closed 2 years ago
How do you display higher accuracy? example
x = new BigNumber('2'); z=x.sqrt() console.log(z.toFixed());
now : 1.4142135623730950488 i hope: 1.414213562373095048801688724...
BigNumber.config({ DECIMAL_PLACES: * })
thx! BigNumber.config({ DECIMAL_PLACES: * }); console.log(z.toFixed()); The result is an error
BigNumber.config({ DECIMAL_PLACES: * }); console.log(z.toFixed());
BigNumber.config({ DECIMAL_PLACES: 100 });
How do you display higher accuracy? example
now : 1.4142135623730950488 i hope: 1.414213562373095048801688724...