[Overview][Constants][Types][Classes][Procedures and functions] | Reference for unit 'math' (#rtl) |
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; |
SameValue returns True if the floating-point values A and B are the same, i.e. whether the absolute value of their their difference is smaller than Epsilon. If their difference is larger, then False is returned.
The default value for Epsilon is dependent on the type of the arguments, but is MinFloat for the float type.
|
Minimum value (closest to zero) of float type |
|
|
Check whether value is zero |
No notes exist for this page yet.