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 DIVS function is used to create a dynamic array containing the result of the element-by-element division of two dynamic arrays. It may take the general form:

 DIVS(array1, array2)

The division of each element of array1 is by the corresponding element of array2, which returns the result in the corresponding element of a new dynamic array. If elements of array1 have no corresponding elements in array2, it pads array2 with ones and returns the array1 elements. If an element of array2 has no corresponding element in array1, it returns zero. If an element of array2 is zero, it prints a run-time error message and returns 0. If either element of a corresponding pair is null, it returns null.

An example of use is as:




The output of this program is: 5²3 

Go back to jBASE BASIC.

Was this article helpful?