Skip to content

Creating logical value from the difference of two absolut e values

1 message · Liaw, Andy

#
It's imprecision of floating point representation of real numbers:
[1] -5.551115123125783e-17

one of the first things to learn about programming: be extremely careful
testing for equality of floating point numbers.

Andy