RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.IsZero Function

Indicates when a floating-point variable or expression evaluates to zero, or very close to zero.

Pascal
function IsZero(const A: Extended; Epsilon: Extended = 0): Boolean; overload;
function IsZero(const A: Double; Epsilon: Double = 0): Boolean; overload;
function IsZero(const A: Single; Epsilon: Single = 0): Boolean; overload;
C++
Boolean IsZero(const Extended A, Extended Epsilon = 0);
Boolean IsZero(const Double A, Double Epsilon = 0);
Boolean IsZero(const Single A, Single Epsilon = 0);

Use IsZero to test whether the value specified by AValue is zero, or differs from zero by at most Epsilon. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!