liveBook · Manning

Numeric base

Also called number 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.

How 3 Manning books explain it

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.

Read how JavaScript in Depth explains numeric base →

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.

Read how Modern C explains numeric base →

Also covered in

What to know first

Related concepts

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.