Performs a protected (i.e., no divide by zero error) division of two extended precision, floating point numbers.
Divides v1 by v2, i.e., v1/v2. If v2 is 0, the function returns the DivZero parameter value.
Namespace: HelperFunctions
Delphi |
function PDiv( const v1, v2: Extended; const DivZero: Extended = 0 ): Single; overload; |
Parameters
v1
Type: Extended
v2
Type: Extended
DivZero
Type: Extended
Type: Single
Reference |