DIV Function

Returns the result of dividing one number by another.

This function is provided for compatibility with other MultiValue systems.

Syntax

DIV(dividend, divisor)

Syntax Elements

dividend, divisor
DataBasic expressions that evaluate to numeric values.

Return Value

The result of dividing dividend by divisor.

Operation

If there is no PRECISION statement in the program, the value is returned rounded to the nearest four decimal places. Otherwise, the number of decimal places returned is as specified by the PRECISION statement.

Example

A = 35
B = 7
C = DIV(A, B)
PRINT C

Calculates and prints 35 / 7 (C = 5).