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