JavaScript numbers are IEEE-754 double floats, exact only up to `2^53 - 1` (`Number.MAX_SAFE_INTEGER`). On-chain tokens require `bigint` to avoid rounding errors.
js const wei = 1_500000000000000000n; // 1.5 ETH const gasLimit = 21000n;
100 XP to Apprentice
Precision limits and BigInt arithmetic.
AI translates the explanation and quiz text while preserving code and answer scoring.
JavaScript numbers are IEEE-754 double floats, exact only up to `2^53 - 1` (`Number.MAX_SAFE_INTEGER`). On-chain tokens require `bigint` to avoid rounding errors.
js const wei = 1_500000000000000000n; // 1.5 ETH const gasLimit = 21000n;
1. What is Number.MAX_SAFE_INTEGER?
2. What happens when you evaluate 10n + 5?
3. How do you represent a BigInt literal?