Table of Contents

Method GreaterThanOrClose

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GreaterThanOrClose(double, double)

Determines whether the first double-precision floating-point value is greater than or approximately equal to the second value.

public static bool GreaterThanOrClose(double value1, double value2)

Parameters

value1 double

The first double-precision floating-point value to compare.

value2 double

The second double-precision floating-point value to compare.

Returns

bool

true if value1 is greater than or approximately equal to value2; otherwise, false.

Remarks

Two values are considered approximately equal if the difference between them is within a small tolerance. The tolerance is determined by the implementation of the AreClose(double,double) method.

GreaterThanOrClose(float, float)

Determines whether the first floating-point value is greater than or approximately equal to the second value.

public static bool GreaterThanOrClose(float value1, float value2)

Parameters

value1 float

The first floating-point value to compare.

value2 float

The second floating-point value to compare.

Returns

bool

true if value1 is greater than or approximately equal to value2; otherwise, false.

Remarks

Two values are considered approximately equal if the difference between them is within a small tolerance. The tolerance is determined by the implementation of the AreClose(float,float) method.