Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



The DIV function is used to calculate the value of the quotient after division of the dividend by the divisor.

DIV(dividend, divisor)

The dividend and divisor expressions can evaluate to any numeric value. The only exception is that the divisor cannot be zero. If either dividend or divisor evaluates to null, it returns null.

An example is as below:

DIVIDEND = 400; DIVISOR = 2000

The above will output '0.2'.

Go back to jBASE BASIC.

Was this article helpful?