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 SDIV function performs a string division of two base 10-string numbers and rounds the result to 14 decimal places. It generally takes the form:

SDIV(expr1, expr2)


expr1 and expr2 are strings consisting of numeric characters, with either optionally including a decimal part.

Use the SDIV function with numbers that may exceed a valid range with standard arithmetic operators.

The PRECISION declaration has no effect on the value returned by SDIV.

Examples of use may be as:

A = 2
B = 3

to display 0.66666666666666 to the screen, or

CRT SDIV (355,113)

to display 3.14159292035398. 

Go back to jBASE BASIC.

Was this article helpful?