(Contents)(Previous)(Next)

Arithmetic Operations

Additional arithmetic operators for numeric values A, B are:

TRUNC (A) for truncating the decimal places of A

TRUNC (A,n) for truncating the number A after n digits to the right of the decimal point

TRUNC (A,-n) for setting n digits to the left of the decimal point of the number A to 0

ROUND (A) for rounding the decimal places

ROUND (A,n) for rounding the nth digit to the right of the decimal point

ROUND (A,-n) for rounding n digits to the left of the decimal point

NOROUND (A) for preventing the rounding of values performed to adapt the values to a specific data type

CEIL (A) for forming the smallest integer value greater than or equal to A

FLOOR (A) for forming the greatest integer value less than or equal to A

SIGN (A) for giving information about the sign of A

ABS (A) for the unsigned (absolute) value of A

FIXED (a,p,q) for specifying the number a in a format of the data type FIXED (p,q) with rounding

POWER (A,n) for forming the nth power of A

SQRT (A) for calculating the square root of A

EXP (A) for forming the power from the base of e (2.71828183) and the exponent A ("e to the power a")

LN (A) for forming the natural logarithm of A

LOG (A,B) for forming the logarithm of B to the base of A

PI for displaying the value of p


(Contents)(Previous)(Next)