Bug in parseBase for numbers containing a dot ('0.0079')
See original GitHub issuenew BN('0.0079', 10) // <BN: ffffb22f>
new BN('0.02', 10) // <BN: ffffff3a>
_init
, parseBase
or _parseBase
will not care if a dot is included in a base-10 input, will process it as ('.' - 48) & 0xf
.
I think it should just reject such input?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Solved: Get all the numbers including comma and dot in a s...
Currently my Regex is working but it only gets the number before comma or dot. For Ex. I have this string, "This is...
Read more >Numbers of Insects (Species and Individuals)
The largest numbers of described species in the U.S. fall into four insect Orders: Coleoptera (beetles) at 23,700, Diptera (flies) at 19,600, Hymenoptera...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It throws now.
A note was added to the README at some point