Replies: 2 comments 1 reply
-
This is a good place to start on the history of exponents support. :) The above code is not safe, as it would break It isn’t an easy task, as the parsing is actually quite non-trivial and EIP-681 wasn’t well defined at the time for some cases. I can look into it again though. It won’t go on BigNumber though, it would likely be part of FixedNumber, since it has an implied fixed format and fractional component. Maybe there can be some shortcut for the purposes of BigNumber though. I would have to think what the API should look like. Currently the above could be done using |
Beta Was this translation helpful? Give feedback.
-
You could also go the other direction, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I find myself frequently redeclaring the following function in my Ethereum-related projects:
Getting this out-of-the-box with the @ethersproject/bignumber package would be great. It would be especially useful for making tests more declarative:
Beta Was this translation helpful? Give feedback.
All reactions