Caché MultiValue Basic Reference
FDIV
[Back] [Next]
   
Server:docs1
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Divides two floating point numbers.
Synopsis
FDIV(num1,num2)
Arguments
num1 The dividend. An expression that resolves to a number or numeric string.
num2 The divisor. An expression that resolves to a non-zero number or numeric string.
Description
The FDIV function divides the value of num1 by num2, and returns the quotient. If a value is 0, a null string, or a non-numeric value, FDIV parses it as 0 (zero). If num1 is 0, FDIV returns a result of 0. If num2 is 0, FDIV generates a <DIVIDE> error.
You can perform the same operation using the Division operator (/). Refer to the Operators page of this manual.
Arithmetic Operations
Examples
The following example uses the FDIV and the DIV functions to divide the same two floating point numbers:
a=11.95
b=10.25
PRINT FDIV(a,b);  ! returns 1.165853658536585366
PRINT DIV(a,b);   ! returns 1
See Also