How number bases and place values work
Read each digit as a coefficient of a power of the base, from the units position toward the left.
Read guideUnderstand positional integers
Three guides explain why the same digit string changes meaning with its base, how exact accumulation avoids Number precision loss, and how bases 2–36 constrain the digit alphabet and sign.
Read each digit as a coefficient of a power of the base, from the units position toward the left.
Read guideAvoid Number precision loss and parseInt prefix parsing by validating and accumulating every digit into BigInt.
Read guideApply one explicit digit alphabet, source-base rule, optional minus, and canonical output without prefixes or separators.
Read guide