compareFloat | R Documentation |
These functions compare values while accounting for differences in floating point precision.
compareFloat(x, y, op, tol = .Machine$double.eps^0.5)
x %<% y
x %<=% y
x %==% y
x %>=% y
x %>% y
x %!=% y
x , y |
Numeric |
op |
Operator for comparison (must be in quotes): |
tol |
Tolerance value: The largest absolute difference between |
TRUE
, FALSE
, or NA
x <- 0.9 - 0.8
y <- 0.8 - 0.7
x < y
x %<% y
compareFloat(x, y, "<")
x <= y
x %<=% y
compareFloat(x, y, "<=")
x == y
x %==% y
compareFloat(x, y, "==")
y > x
y %>% x
compareFloat(y, x, ">")
y >= x
y %>=% x
compareFloat(y, x, ">=")
x != y
x %!=% y
compareFloat(x, y, "!=")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.