Numeric base
A numeric base, or radix, is the positional numeral-system value that determines a numeral’s digit set and the place-value scale of its digits.
JavaScript in Depth
The base of a positional numeral system whose powers determine the place values of digits.
- How it is used
- Uses radix to explain binary place values and the number of values a byte can represent.
- How deep it goes
- Works through decimal and binary place values and eight-bit capacity, without developing arbitrary-base conversion.
- Examples
- Expands 1234 in decimal and 1011 in binary, then counts the 256 patterns of an eight-bit byte.
- What you can do after
- Evaluate/understand binary place values and calculate how many unsigned values a given number of bits represents.
Python Workout, Second Edition
A number base is the radix that determines the positional values of digits in a numeral system.
- How it is used
- Uses numeric bases to interpret string input as integers during conversion exercises.
- How deep it goes
- Explains int’s base argument and practices bases 2–16, without detailing numeral-system internals.
- Examples
- Uses hexadecimal conversion and a guessing game that accepts numbers in randomly selected bases.
- What you can do after
- Apply it via Python’s int function to interpret user-entered strings in a specified base.
Read how Python Workout, Second Edition explains numeric base →
Modern C
A number base is the radix used to interpret the positional digits of a numeric string.
- How it is used
- Uses numeric bases to parse textual numbers from lines and command-line arguments.
- How deep it goes
- Explains specified and prefix-deduced bases with worked parsing boundaries, but defers conversion-function internals.
- Examples
- Demonstrates base 10 and base 0 on "0789a", then applies base 0 to a command-line argument.
- What you can do after
- Apply it via strtoul or strtoull to choose explicit bases or prefix-based interpretation for numeric strings.
Also covered in
- Python Workout: 50 ten-minute exercises
- Julia as a Second Language
- The Well-Grounded Rubyist, Fourth Edition
- Rust in Action: Systems programming concepts and techniques
What to know first
- integerAn integer is a whole-number value with no fractional part, including negative numbers, zero, and positive numbers.
- floating-point arithmeticFloating-point arithmetic is numerical computation using finite-precision representations of real numbers, which can introduce rounding and range errors.
Related concepts
- modulekind of · A software module is a bounded unit of code that organizes related definitions or functionality and may expose selected elements through an interface.
- to_iconfigures · to_i is a Ruby conversion method that produces an integer representation of a value and can interpret a string in a specified numeric base.
- integerconfigures · An integer is a whole-number value with no fractional part, including negative numbers, zero, and positive numbers.
- floating-point arithmeticconfigures · Floating-point arithmetic is numerical computation using finite-precision representations of real numbers, which can introduce rounding and range errors.
- iteratehas part · Iterate is an operation that advances through successive values or states according to specified functions or iteration rules.
- strtoulused by · strtoul is a C standard library function that converts the initial portion of a string to an unsigned long value using a specified or inferred integer base.
Questions about numeric base
What is numeric base?
A numeric base, or radix, is the positional numeral-system value that determines a numeral’s digit set and the place-value scale of its digits.
Which Manning books explain numeric base?
JavaScript in Depth, Python Workout, Second Edition and Modern C.
What should I know before learning numeric base?
Manning books that teach numeric base usually introduce integer and floating-point arithmetic first.
What is numeric base a kind of?
Numeric base is a kind of module. A software module is a bounded unit of code that organizes related definitions or functionality and may expose selected elements through an interface.
What are the parts of numeric base?
Numeric base includes iterate.
What is numeric base also called?
Numeric base is also called number base.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


