Skip to content

PositionalNumerals ​

Ordinary base bb notation, non-negative integers only — the same digits IntegerDigits already gives for an integer base, wrapped as a numeral-system value so it can stand wherever the others do.

PositionalNumerals(b)the system, digits 0,…,b−10,\dots,b-1
Typed signatures
TypePackageApplies
(integer) -> valuenumeralsalways

Domain: Numeral systems

Examples

Basic #

100=2⋅49+0⋅7+2100 = 2\cdot 49 + 0\cdot 7 + 2

live ↗
InIntegerDigits(100,PositionalNumerals(7))\mathrm{IntegerDigits}(100, \mathrm{PositionalNumerals}(7))Out[2,0,2]\bigl\lbrack2, 0, 2\bigr\rbrack
About
Examples1
Checked againstWolfram Language 1 agree

See also: IntegerDigits, FromDigits, NumeralSystemShape, Radix