Math
Prefix
- [ Precedence 300 ]
Overload | Description |
---|---|
- (n: Int) -> Int
|
Negates n
|
- (n: Float) -> Float
|
Binary
+ [ Precedence 650 ]
Overload | Description |
---|---|
(a: Int) + (b: Int) -> Int
|
Calculates the sum of a and b
|
(a: Float) + (b: Float) -> Float
|
|
(a: Int) + (b: Float) -> Float
|
|
(a: Float) + (b: Int) -> Float
|
|
(a: String) + (b: String) -> String
|
Concatenates a and b
|
- [ Precedence 700 ]
Overload | Description |
---|---|
(a: Int) - (b: Int) -> Int
|
Calculates the difference between a and b
|
(a: Float) - (b: Float) -> Float
|
|
(a: Int) - (b: Float) -> Float
|
|
(a: Float) - (b: Int) -> Float
|
* [ Precedence 500 ]
Overload | Description |
---|---|
(a: Int) * (b: Int) -> Int
|
Calculates the product of a and b
|
(a: Float) * (b: Float) -> Float
|
|
(a: Int) * (b: Float) -> Float
|
|
(a: Float) * (b: Int) -> Float
|
/ [ Precedence 550 ]
Overload | Description |
---|---|
(a: Int) / (b: Int) -> Int
|
Calculates the quotient between a and b
|
(a: Float) / (b: Float) -> Float
|
|
(a: Int) / (b: Float) -> Float
|
|
(a: Float) / (b: Int) -> Float
|
% [ Precedence 600 ]
Overload | Description |
---|---|
(a: Int) % (b: Int) -> Int
|
Calculates the remainder of the division between a and b
|
(a: Float) % (b: Float) -> Float
|
|
(a: Int) % (b: Float) -> Float
|
|
(a: Float) % (b: Int) -> Float
|