#How to format Field values that are output

7 messages · Page 1 of 1 (latest)

sharp yoke
#

Currently when I do num.get(), I get this kind of low level value. However how can I format it in a number string?

eager ice
#

and convert your bigint to number

#

const myBigInt = BigInt(10); // 10n also works
const myNumber = Number(myBigInt);

#

care if you are out of range for a number