DataBasic Reference > MultiValue Compatibility > Statements and Intrinsic Functions > DIV Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

DIV Function (DataBasic MultiValue Compatibility) (m6187ai+div_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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).

RealityV15.0Comment on this topic