Skip to contents

To help make your code safer, the 'tinycodet' R-package introduces a few functions:

See also

Examples

x <- c(0.3, 0.6, 0.7)
y <- c(0.1*3, 0.1*6, 0.1*7)
x == y # gives FALSE, but should be TRUE
#> [1] FALSE FALSE FALSE
x %d==% y # here it's done correctly
#> [1] TRUE TRUE TRUE