Reverse in Base Tool
Reverse the digits of a nonnegative integer interpreted in a base between 2 and 36.
Description
Reverse the digits of a nonnegative integer interpreted in a base between 2 and 36.
Reverse the digits of a nonnegative integer interpreted in a base between 2 and 36.
When to use Reverse in Base Tool
Use this tool to test or transform exact integers according to the named number-theory definition, for education, validation, or algorithm checks.
- Integer
- An integer input greater than or equal to 0.
- Base
- An integer input from 2 through 36.
How the calculation works
The formula below determines the tool output. Reversed value: The calculated reversed value.1
result = positional digits of n in the selected base, read in reverse order Limitations and assumptions
This tool applies an exact integer definition within JavaScript's safe-integer range. It is not an arbitrary-precision factorization or proof system, so do not use rounded measurements or integers beyond the accepted domain as though they were exact.
Alternative or Complementary approaches
Complement a number-property result with its factorization, divisors, digit representation, or a second independent predicate. A true result establishes only the named property and does not imply other properties such as primality.
References
-
Positional notation — Wikipedia contributors
Similar or alternative tools
- Reverse Integer Digits Tool
Reverse the base-10 digits of a safe integer while preserving its sign.
- Digit Frequency Counter
Count how many times each digit appears in a nonnegative integer.
- Numeric Palindrome Checker
Check whether the unsigned base-10 digits of a safe integer read the same in both directions.