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

Adds two floating point numbers.
Synopsis
FADD(num1,num2)
Arguments
num An expression that resolves to a numeric value.
Description
The FADD function adds two numbers and returns the result. If a num value is a null string or a non-numeric value, FADD parses its value as 0 (zero).
You can perform the same operation using the addition operator (+). Refer to the Operators page of this manual.
Arithmetic Operations
Examples
The following example uses the FADD function to add two floating point numbers:
a=11.95
b=10.25
PRINT FADD(a,b);  ! returns 22.2
See Also