Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Type

Format

Description

Function

Abs(number)

Returns the absolute value.

Function

Ceil(number)

Returns the ceiling of a value.

Function

Floor(number)

Returns the floor of a value.

Function

Fmod(number1, number2)

Returns the floating-point remainder of number1/number2.

Function

Log (number)

Computes the natural logarithm.

Function

Log10(number)

Computes the base-10 logarithm.

Function

Rand()

Generates a pseudorandom number.

Function

Sqrt(number)

Computes the square root.

 

Function

n=Abs(number)

Description

Returns the absolute value.

Example

Returns the absolute value of -992 to the variable VAL.

VAR VAL;

VAL=Abs(-992);

 

Function

n=Ceil(number)

Description

Returns the ceiling of a value.

Example

Returns the ceiling of 2.1416 to the variable VAL.

VAR VAL;

VAL=Ceil(2.1416);

 

Function

n=Floor(number)

Description

Returns the floor of a value.

Example

Returns the floor of 2.1416 to the variable VAL.

VAR VAL;

VAL=Floor(2.1416);

Function

n=Fmod(number1, number2)

Description

Returns the floating-point remainder.

Example

Returns the floating-point remainder of 2.25/4 to the variable VAL.

VAR VAL;

VAL=Fmod(2.25,4);

 

Function

n=Log(number)

Description

Computes the natural logarithm.

Example

Returns the natural logarithm of 5.5 to the variable VAL.

VAR VAL;

VAL=Log(5.5);

 

Function

n=Log10(number)

Description

Computes the base-10 logarithm.

Example

Returns the base-10 logarithm of 5.5 to the variable VAL.

VAR VAL;

VAL=Log10(5.5);

 

Function

n=Rand()

Description

Generates the pseudorandom number.

Example

Saves the pseudorandom number to the variable VAL.

VAR VAL;

VAL=Rand();

 

Function

n=Sqrt(number)

Description

Computes the square root.

Example

Returns the square root of 4002 to the variable VAL.

VAR VAL;

VAL=Sqrt(4002);

  • No labels