-
I've read the documentation but can't convert this bigNumber hex to string, or integer could someone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The Use See the documentation here: https://docs.ethers.io/v5/api/utils/bignumber/#BigNumber--BigNumber--methods--conversion |
Beta Was this translation helpful? Give feedback.
-
if anyone faces this issue just use (bigNumber).toNumber() , so you get the number of that input |
Beta Was this translation helpful? Give feedback.
The
_hex
is an internal value (in v6 it will be better hidden).Use
value.toHexString()
to get a hex value andvalue.toString()
to get a decimal value.See the documentation here: https://docs.ethers.io/v5/api/utils/bignumber/#BigNumber--BigNumber--methods--conversion