ApproxCompare()
ApproxCompare()
Definition
Compares two double or float values for equality or being greater than / less than the compared to value.
Comparing for being greater than / less is done using an epsilon value of 1E19
Method Return Value
An int value representing the outcome of the comparison. Returns 0 if values are equal, 1 if value1 is greater than value2. -1 if value1 is less than value2.
Syntax
this.ApproxCompare(this double double1, double double2)
this.ApproxCompare(this float float1, double float2)
Parameters
Main use would be using it for equality comparisons to circumvent running into floating point considerations, value compares for < or > could be usually done more straightforward directly.

