[Overview][Constants][Types][Classes][Procedures and functions] |
Check whether 2 float values are the same
Source position: line 0
function SameValue( |
const A: Extended; |
const B: Extended |
):Boolean; |
const A: Single; |
const B: Single |
):Boolean; |
const A: Extended; |
const B: Extended; |
Epsilon: Extended |
):Boolean; |
const A: Single; |
const B: Single; |
Epsilon: Single |
):Boolean; |
SameValuereturns Trueif the floating-point values Aand Bare the same, i.e. whether the absolute value of their their difference is smaller than Epsilon. If their difference is larger, then Falseis returned.
The default value for Epsilonis dependent on the type of the arguments, but is MinFloatfor the float type.
|
Minimum value (closest to zero) of float type |
|
|
Check whether value is zero |