liveBook · Manning

Arithmetic operator

An arithmetic operator is a programming-language operator that performs a numerical calculation on one or more operands.

How 2 Manning books explain it

Building User-Friendly DSLs

An operator that performs a numerical arithmetic calculation such as multiplication, division, addition, or subtraction.

How it is used
Orders arithmetic expression evaluation and guides implementation of expression evaluators.
How deep it goes
Explains recursive evaluation, parentheses, precedence, and AST construction, stopping short of broader operator semantics.
Examples
Uses 1 + 2 * 3 and 1 + 2 * (3 + 4) to demonstrate precedence and parentheses.
What you can do after
Evaluate arithmetic expressions recursively and represent their evaluation order with ASTs.

Read how Building User-Friendly DSLs explains arithmetic operator →

Math for Web Design

A CSS arithmetic operator is a symbol that performs addition, subtraction, multiplication, or division within a CSS mathematical expression.

How it is used
Calculates layout, size, and transformation values through CSS math functions.
How deep it goes
Defines four operators and explains syntax, units, scalar operands, and precedence, but defers detailed calc() treatment.
Examples
Uses width calculations, angle addition, unit validation, scalar division, and a table of operator results.
What you can do after
Apply it via calc() to construct valid CSS values with compatible units and predictable precedence.

Read how Math for Web Design explains arithmetic operator →

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.