Multiplies two numeric strings.
function multiplies the value of two numeric strings and returns a numeric value. If a numstr
value is the null string or a non-numeric value, SMUL
parses its value as 0 (zero).
To perform arithmetic operations on numeric strings, use the SADD
, and SDIV
To perform arithmetic operations on floating point numbers, use the FADD
, and FDIV
functions, or use the standard arithmetic operators.
To perform integer division, use the DIV
function. To perform modulo division, use the MOD
To perform arithmetic operations on corresponding elements of dynamic arrays, use the ADDS
, and MODS
To perform numeric comparison operations, use the SCMP
function, or use the standard comparison operators.
The following examples use the SMUL
function to multiply two numeric strings. All of these examples return 21:
All of the following examples return 0: