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