Skip to content

Math

Prefix

- [ Precedence 300 ]

Overload Description

All reference combinations are defined

- (n: Int) -> Int
Negates n

All reference combinations are defined

- (n: Float) -> Float

Binary

+ [ Precedence 650 ]

Overload Description

All reference combinations are defined

(a: Int) + (b: Int) -> Int
Calculates the sum of a and b

All reference combinations are defined

(a: Float) + (b: Float) -> Float

All reference combinations are defined

(a: Int) + (b: Float) -> Float

All reference combinations are defined

(a: Float) + (b: Int) -> Float

All reference combinations are defined

(a: String) + (b: String) -> String
Concatenates a and b

- [ Precedence 700 ]

Overload Description

All reference combinations are defined

(a: Int) - (b: Int) -> Int
Calculates the difference between a and b

All reference combinations are defined

(a: Float) - (b: Float) -> Float

All reference combinations are defined

(a: Int) - (b: Float) -> Float

All reference combinations are defined

(a: Float) - (b: Int) -> Float

* [ Precedence 500 ]

Overload Description

All reference combinations are defined

(a: Int) * (b: Int) -> Int
Calculates the product of a and b

All reference combinations are defined

(a: Float) * (b: Float) -> Float

All reference combinations are defined

(a: Int) * (b: Float) -> Float

All reference combinations are defined

(a: Float) * (b: Int) -> Float

/ [ Precedence 550 ]

Overload Description

All reference combinations are defined

(a: Int) / (b: Int) -> Int
Calculates the quotient between a and b

All reference combinations are defined

(a: Float) / (b: Float) -> Float

All reference combinations are defined

(a: Int) / (b: Float) -> Float

All reference combinations are defined

(a: Float) / (b: Int) -> Float

% [ Precedence 600 ]

Overload Description

All reference combinations are defined

(a: Int) % (b: Int) -> Int
Calculates the remainder of the division between a and b

All reference combinations are defined

(a: Float) % (b: Float) -> Float

All reference combinations are defined

(a: Int) % (b: Float) -> Float

All reference combinations are defined

(a: Float) % (b: Int) -> Float