/
Math Functions

Math Functions

 

 

Built-in Functions on the Math Namespace

 

pow

Raises the first argument to the power of the second argument.

 

int i = Math:pow(2, 8);

 

sqrt

Calculates the square root of the argument.

decimal d = Math:sqrt(3);

 

random

Generates a random decimal between 0 and 1.

decimal r = Math:random(); 

 

 

 

Additional Mentions and References

 

 

Related content

String Functions
More like this
Data Types
More like this
Querying Data
Read with this
Understanding Decimals
Understanding Decimals
More like this
Native JSON Types
Read with this
Date Functions
More like this