IntegerString
The string representation of n in the given base (default 10).
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
IntegerString!IntegerString(n)string form of in base 10.IntegerString(n, base)string form of in the given base, up to base 36.IntegerString(n, base, length)padded with leading zeros to exactly length digits, or cut to the last length.IntegerString(n, "Roman")the Roman numeral for n, same as RomanNumeral.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer?) -> string | compute-engine | always |
(integer, (integer | string)?, integer?) -> string | numeralsreplaces compute-engine | always |
Details
- Bases above 10 use letters a-z for digit values beyond 9, up to base 36.
- compute-engine keeps a leading minus sign for negative n
- A third argument pads with leading zeros to that length, or keeps only the last that many digits; with it, a negative n is left unevaluated (Wolfram drops the sign, compute-engine keeps it).
- compute-engine's second argument is always a numeric base.
Examples
Scope #
A third argument pads with leading zeros to that length (or keeps only the last that many digits)
live ↗InOut
About
| Examples | 14 |
|---|---|
| Checked against | Wolfram Language 13 agree1 differ |
| Crosswalk | Wolfram Language |
See also: IntegerDigits