Math
Methods
Method | Description |
---|---|
Pow(double x, double y) | It returns the value of x power y. |
Min(double val1, double val2) | It returns the minimum (smaller) among given two numbers. |
Max(double val1, double val2) | It returns the maximum (bigger) among given two numbers. |
Floor(double value) | It rounds-down the given number. Eg: 10.29 becomes 10. |
Ceiling(double value) | It rounds-up the given number. Eg: 10.29 becomes 11. |
Round(double value) | It rounds up / down the given number, to the nearest integer value. Eg: 10.29 becomes 10 and 10.59 becomes 11. |
Round(double value, int decimals) | It rounds up / down the given number, to the specified fractional digits. Eg: 10.272 becomes 10.27. |
Sign(double value) | It returns: -1: if the value is a negative value 0: if the value is equal to 0 1: if the value is a positive value |
Abs(double value) | It returns the positive value of the given number. |
DivRem(int val1, int val2, out int result) | It returns the remainder value of val1/val2 and provides the quotient value as the 'result' out parameter. |
Sqrt(double value) | It returns the square root value of the given number. |