IntegerReverse
The integer whose digits are those of in reverse order.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
IntegerReverse✓IntegerReverse(n)the base-10 digits of , reversedIntegerReverse(n, base)reversed in the given baseIntegerReverse(n, base, len)padded to len digits (leading zeros) before reversingTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer, any?, integer?) -> integer | numerals | always |
Details
- A trailing zero of becomes a leading zero of the reversal, which then simply vanishes —
IntegerReverse(1200)is 21, not 0021 - The sign of is not carried through; the digits reverse as if were non-negative
Examples
Basic #
Properties #
About
| Examples | 13 |
|---|---|
| Checked against | Wolfram Language 13 agree |
| Crosswalk | Wolfram Language |
See also: IntegerDigits, IntegerLength