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?

SMUL

Description

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

SMUL(expr1, expr2)

Where:

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

The function may be used with numbers that may exceed a valid range with standard arithmetic operators. The PRECISION declaration does not affect the value returned by SMUL

An example of use is as:

A = 243603310027840922
B = 3760
CRT SMUL (A,B)

CRT SMUL (0.0000000000000475,3.61)

to display 915948445704681866720 and 0.0000000000001714 to the screen.

Go back to jBASE BASIC

Was this article helpful?