Take this R example:
> x = 0.5 - 0.3 > y = 0.3 - 0.1 > x == y
For a quote from the R documentation:
'all.equal (x, y) is a utility for comparing R objects of' x and 'y testing' for close equality. If they are different, the comparison is still brought to some extent and the difference report is returned. Do not use 'all.equal directly, "if the expressions are either to use 'isTRUE (all.equal (....)), or" are identical if necessary.
In Julia , x == y will return false . Is there any way to verify this equality to the accuracy of the machine in Julia?
source share