Name
NearlyEqual -- check for near equality (V10.0)
Synopsis
result = NearlyEqual(x, y)
Function
This function compares x and y and returns True if they are nearly equal. This function is only useful for floating point values. The advantage of this function over Hollywood's equality operator is that comparing floating point numbers using the equality operator can lead to problems in case there are extremely minimal differences on the bit level, e.g. caused by (de)serialization. That's why it's recommended to compare floating point numbers against near equality instead of absolute equality for more reliability.

Inputs
x
first operand for comparison
y
second operand for comparison
Results
result
True if x and y are nearly equal, False otherwise

Show TOC