Performs a protected (i.e., no divide by zero error) division of two double 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: Double; const DivZero: Double = 0 ): Single; overload; |
Parameters
v1
Type: Double
v2
Type: Double
DivZero
Type: Double
Type: Single
Reference |