Utils
getNumber
Gets a number from value
. If it is an invalid value for a number, then an ArgumentError will be thrown for name
.
Parameters
Parameter | Type | Description |
---|---|---|
value | BigNumberish | The value to convert. |
name ? | string | The name of the value. |
Returns
number
The value.
Throws
If the value is invalid.
Throws
If the value is too large.
Source
Was this page helpful?