WARN59-Explicit float comparison

Top  Previous  Next

 

Explicit float comparison (WARN59)

 

This section lists locations in your code where floating point numbers are directly compared. It is considered not secure to compare floating numbers directly. Instead use functions in Delphi's System.Math unit, like IsZero and SameValue.

 

Example:

 

clipx169

 

In the example above, use instead SameValue function from System.Math unit.

 

 

See also:

 

Alerts