* Converts %%value%% to a number. If %%value%% is a Uint8Array, it * is treated as Big Endian data. Throws if the value is not safe.
(value)
| 157 | * is treated as Big Endian data. Throws if the value is not safe. |
| 158 | */ |
| 159 | function toNumber(value) { |
| 160 | return getNumber(toBigInt(value)); |
| 161 | } |
| 162 | exports.toNumber = toNumber; |
| 163 | /** |
| 164 | * Converts %%value%% to a Big Endian hexstring, optionally padded to |