Show: Delphi C++
Display Preferences

System.Math.IsZero

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsZero(const A: Extended; Epsilon: Extended): Boolean;
function IsZero(const A: Double; Epsilon: Double): Boolean;
function IsZero(const A: Single; Epsilon: Single): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsZero(const System::Extended A, System::Extended Epsilon = 0.000000E+00)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

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

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

If <code>Epsilon = 0</code>, then some reasonable default value is used implicitly. For example, the Double version of IsZero uses the default value:

Epsilon = 1E-12.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance