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?

SSUB

Description

The SSUB function performs string subtraction of two base 10-string numbers. It takes the general form:

SSUB(expr1, expr2)

Where:

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

The SSUB function may be used with numbers that could exceed a valid range with standard arithmetic operators. The PRECISION declaration has no effect on the value returned by SSUB

An example of use would be: 

PRECISION 2
A = 2.3000000123456789
B = 5.0000000000000001

CRT SSUB (A,B)

to display -2.6999999876543212 to the screen, despite the setting of precision to 2 decimal places. 


Go back to jBASE BASIC.

Was this article helpful?