Closed zhongmeizhi closed 2 years ago
decimal result is NaN of string
example:
new Decimal('0.00').div('0.00').toPrecision(2) === 'NaN'
I don't understand you. What is the issue here?
The type of the return value of toPrecision will always be "string".
toPrecision
Number.isNaN(0 / 0); // true
I see;
decimal result is NaN of string
example: