Numeric handling predefined functions

val ( expression )

 

This function evaluates the expression as number.

 

Round ( num )

 

This function rounds the number num to the nearest integer.

 

RoundTo ( num, mode )

 

This function rounds the number num to nearest integer (if mode is "rmNearest"), to the smaller integer (if mode =

"rmDown"), to then bigger integer (if mode = "rmUp") and truncated (if mode = "rmTruncate").

 

Int  ( num )

 

This function returns the integer part of the number num.             

 

Abs ( num )

 

This function returns the absolute value of number num.          

 

Mod ( num1, num2 )

 

This function returns the module of the integer division of numbers num1 and num2.                

 

Random ( num )

 

This function returns a random number using as generator the number num.

 

Max ( num1, num2 )

 

This function returns the maximum of numbers num1 and num2.

 

Min ( num1, num2 )

 

This function returns the minimum of numbers num1 and num2.

 

Div ( num1, num2 )

 

This function returns the result of integer division between num1 and num2.

 

eval ( expr )

 

This function returns the value by evaluate the expression expr.