MikeMcl / bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic
http://mikemcl.github.io/bignumber.js
MIT License
6.69k stars 742 forks source link

NaN to bignuber no error #207

Closed likeaixi closed 5 years ago

MikeMcl commented 5 years ago
n = new BigNumber(NaN);
n.toString();    // "NaN"

What is the problem?