Caché MultiValue Basic Reference
SMUL
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Multiplies two numeric strings.
Synopsis
SMUL(numstr1,numstr2)
Arguments
numstr An expression that resolves to a number or numeric string.
Description
The SMUL 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).
Arithmetic Operations
Examples
The following examples use the SMUL function to multiply two numeric strings. All of these examples return 21:
PRINT SMUL(3,7)
PRINT SMUL("3","7")
PRINT SMUL("003","+7.00")
PRINT SMUL("3wishes","7dwarves")
All of the following examples return 0:
PRINT SMUL(3,0)
PRINT SMUL("3","")
PRINT SMUL("3","seven")
See Also