Open Mr-wangyoushuai opened 4 years ago
new Big(100000000000000.24) => 100000000000000.23
You're seeing that because by the time the number gets to the Big constructor, JavaScript has already rounded it. Try passing in a string, like this: new Big('100000000000000.24').
new Big('100000000000000.24')
new Big(100000000000000.24) => 100000000000000.23