Arithmetic operator
An arithmetic operator is a programming-language operator that performs a numerical calculation on one or more operands.
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.
Related concepts
- operatorkind of · An operator is a symbol, keyword, or language construct that specifies an operation on one or more operands.
- first-class objectcontrasts with · A first-class object is a language value that can be stored, passed, returned, and manipulated in the same general ways as other values.
- arbitrary-precision integerused by · An integer representation that can accommodate values beyond fixed-width limits by expanding storage as needed, without loss of integer precision.
- JavaScriptused by · JavaScript is a high-level, dynamically typed, multi-paradigm programming language standardized as ECMAScript and used for web and general-purpose programming.
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.

