Elm - Arithmetic Operators


Advertisements

Illustration

Try the following example in REPL −

> a = 7
7 : number
> b = 2
2 : number
> a+b
9 : number
> a-b
5 : number
> a*b
14 : number
> a/b
3.5 : Float
> a//b
3 : Int
> a % b
1 : Int
Advertisements