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?

SQRT

Description

The SQRT function returns the mathematical square root of a value. It takes the form:

SQRT(expression)

Where:

expression should evaluate to a positive numeric value as the authors do not want to introduce a complex number type within the language. Negative values will cause a math error.

The function calculates the result at the highest precision available and then truncates the answer to the required PRECISION.  An example of use would be: 

PRECISION 2
CRT SQRT (44)

to display 6.63, which is the square root of 44 to 2 decimal places. 

Go back to jBASE BASIC.

Was this article helpful?