Closed eldereal closed 2 years ago
Describe the bug
Incorrect result will When parsing exponential form numbers with following patters:
To Reproduce Run in a nodejs console:
> bigDecimal = require('js-big-decimal'); > new bigDecimal('1e0') bigDecimal { value: '0.1' } > new bigDecimal('1e1') bigDecimal { value: '1' } > new bigDecimal('-1e1') bigDecimal { value: '-.1' } > new bigDecimal('-0.0134e-2') bigDecimal { value: '0.-00134' }
Expected behavior Correct numbers returned.
Additional context Tested in latest development branch. A bug fix will submitted later.
Describe the bug
Incorrect result will When parsing exponential form numbers with following patters:
To Reproduce Run in a nodejs console:
Expected behavior Correct numbers returned.
Additional context Tested in latest development branch. A bug fix will submitted later.