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.
Also covered in
- Julia as a Second Language
- Elixir in Action, Third Edition
- Grokking Simplicity
- The Well-Grounded Rubyist, Fourth Edition
- The Quick Python Book, Fourth Edition
- Kotlin in Action, 2E
- Go in Action, Second Edition
- Modern C, Third Edition
- Modern C
What to know first
- loopA loop is a programming-language control-flow construct that repeatedly executes a block of instructions according to an iteration rule or continuation condition.
- callA call is an invocation that requests execution of a function, routine, command, or tool, optionally supplying arguments.
- functionA function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
- objectAn object is a distinct entity represented or manipulated within a computational system, typically as a value, data structure, resource, or instance of a type.
Related concepts
- operatorkind of · An operator is a symbol, keyword, or language construct that specifies an operation on one or more operands.
- number typeuses · A numeric type is a type whose values represent numbers with a defined representation and support numerical operations.
- 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.
- first-class objectcontrasts with · A first-class object is a language value or entity that can be represented, stored, passed, returned, and manipulated like other values.
- JavaScriptpart of · JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Questions about arithmetic operator
What is arithmetic operator?
An arithmetic operator is a programming-language operator that performs a numerical calculation on one or more operands.
Which Manning books explain arithmetic operator?
Building User-Friendly DSLs and Math for Web Design.
What should I know before learning arithmetic operator?
Manning books that teach arithmetic operator usually introduce loop, call, function and object first.
What is the difference between arithmetic operator and first-class object?
An arithmetic operator is a programming-language operator that performs a numerical calculation on one or more operands. A first-class object is a language value or entity that can be represented, stored, passed, returned, and manipulated like other values.
What is arithmetic operator a kind of?
Arithmetic operator is a kind of operator. An operator is a symbol, keyword, or language construct that specifies an operation on one or more operands.
What is arithmetic operator part of?
Arithmetic operator is part of JavaScript. JavaScript is a high-level, dynamically typed 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.

