# SMUL

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

# Description

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

SMUL(expr1, expr2)
1

Where:

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

The function can 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:

strA = 243603310027840922
strB = 3760
CRT SMUL (strA, strB)

CRT SMUL (0.0000000000000475, 3.61)
1
2
3
4
5

to display 915948445704681866720 and 0.0000000000001714 to the screen.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide