Overview
Arithmetic operations are a fundamental feature of a language. This chapter collects the main arithmetic operations offered by Clojure. The list might seem quite small and the reason is that Clojure is neither re-implementing nor wrapping the vast selection of math functions that Java offers. If you are for example searching a function to truncate decimals or square root a number they can be easily leveraged through Java interoperability.
Clojure still offers explicit versions of the most common math operations in the standard library. This is mainly to provide optimal performance without requiring explicit type hints. The operations Clojure provides are part of this chapter and are summarized by the following table: