Check difference and / or equality of numbers
Check if one number is greater/lower than or equal to another.
agteb(a, b) alteb(a, b) aeqb(a, b)
a |
Numerical vector of numbers |
b |
Numerical vector of numbers |
Not all numbers (especially the decimal ones) can be represented exactly in floating point arithmetic, and their arithmetic may not give the normal expected result.
Function agteb()
checks if a number a
is “greater than or equal to”
(gte
) another number b
. In the same spirit, function alteb()
checks
if a number a
is “lower than or equal to” (lte
) another number b
,
while function aeqb()
checks for their equality (eq
).
Adrian Dusa
Goldberg, David (1991) "What Every Computer Scientist Should Know About Floating-point Arithmetic", ACM Computing Surveys vol.23, no.1, pp.5-48, doi: 10.1145/103162.103163
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.