liveBook · Manning

Number type

A number type is a programming-language or data-system type whose values represent numeric quantities and support defined numerical operations.

How 6 Manning books explain it

Grokking Relational Database Design

NUMERIC is an SQL exact numeric data type that stores numbers with a declared precision and scale.

How it is used
Defines accurate fixed-point attributes, especially monetary values, during database design.
How deep it goes
Explains precision, scale, fixed-point accuracy, and type selection, without descending into storage internals.
Examples
Uses 12.3456, product prices and costs, and a spaceship recommended price declared as NUMERIC(8, 2).
What you can do after
Apply it to model monetary and other accuracy-sensitive attributes with an intentional precision and scale.

Read how Grokking Relational Database Design explains number type →

Build Financial Software with Generative AI (From Scratch)

NUMERIC is a database data type for storing exact decimal numbers with specified precision and scale.

How it is used
Stores ACH debit and credit totals while enforcing numeric database input.
How deep it goes
Defines precision and scale, then follows amounts through parsing, database columns, API schemas, and UI mapping.
Examples
Uses ACH file-control debit and credit totals, fixed-width amount parsing, and a files API response.
What you can do after
Operate/configure numeric amount columns and trace their values from parsed ACH records to a displayed API response.

Read how Build Financial Software with Generative AI (From Scratch) explains number type →

Julia as a Second Language

A number is a mathematical value representing a quantity or position in a numerical system.

How it is used
Uses number types to choose numeric representations, interpret text input, and restrict coordinates to numeric values.
How deep it goes
Works through type inspection, integer bounds, overflow, parsing, hierarchy traversal, and parametric constraints; defers background on bit lengths and overflow.
Examples
Shows REPL checks for Int8 bounds, base-2 parsing, and Point and Vec2D definitions that reject nonnumeric coordinates.
What you can do after
Operate/configure Julia number types by checking limits, parsing strings into chosen types, and constraining numeric fields.

Read how Julia as a Second Language explains number type →

Math for Web Design

The number type is the JavaScript primitive type for numeric values, including integers and floating-point numbers.

How it is used
Supports arithmetic for dimensions, animations, dates, financial data, loops, comparisons, and other JavaScript calculations.
How deep it goes
Explains IEEE 754 storage, safe integer limits, decimal imprecision, coercion, rounding, randomness, and BigInt boundaries.
Examples
Uses unsafe-integer additions, approximate equality, carousel indexing, currency formatting, and random RGB color generation.
What you can do after
Diagnose/debug precision, coercion, rounding, unsafe-integer, and remainder problems in JavaScript calculations.

Read how Math for Web Design explains number type →

Essential TypeScript 5, Third Edition

The number type is the built-in JavaScript type for numeric values.

How it is used
Represents numeric values in JavaScript and supports calculations within dynamically typed programs.
How deep it goes
Defines the unified numeric type and demonstrates dynamic reassignment, but defers detailed type coercion mechanics.
Examples
Demonstrates prices, typeof output, reassignment, and tax calculations receiving number, string, and boolean arguments.
What you can do after
Diagnose unexpected calculations by checking whether values are numbers or strings and observing JavaScript coercion results.

Read how Essential TypeScript 5, Third Edition explains number type →

Clojure: The Essential Reference

A numeric type is a type whose values represent numbers with defined precision, range, and arithmetic behavior.

How it is used
Explains how numeric precision, range, promotion, rounding, and overflow affect arithmetic and hashing.
How deep it goes
Defines precision and contagion, then works through floating-point rounding and fixed-width overflow without detailing every numeric type.
Examples
Demonstrates unchecked operators, long boundary values, floating-point conversion, and a string hash using overflowing arithmetic.
What you can do after
Evaluate numeric behavior and choose explicit precision handling instead of relying on contagion rules.

Read how Clojure: The Essential Reference explains number type →

Related concepts

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.