Skip to content

Glossary: Kotlin Basics

arithmetic operators

Also written: +, -, *, /, %, +=, ++, remainder

`+`, `-`, `*`, `/` and `%` (the remainder after dividing) do math, with `*` and `/` before `+` and `-`. `+=` changes a `var` by an amount and `++` adds 1.

Where the book teaches it

Related terms

integer divisionvariable