Elm – Arithmetic Operators

elm arithmetic operators

In this guide, we will discuss Arithmetic Operators in ELM Programming Language.

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

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply