Table of Contents

Method GreaterThanAndNotClose

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

GreaterThanAndNotClose(double, double)

Determines whether the first value is greater than the second value and not approximately equal to it.

public static bool GreaterThanAndNotClose(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 value2 and the two values are not approximately equal; otherwise, false.

Remarks

The method uses a predefined tolerance to determine whether the two values are approximately equal.

GreaterThanAndNotClose(float, float)

Determines whether the first value is greater than the second value and not approximately equal to it.

public static bool GreaterThanAndNotClose(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 value2 and the two values are not approximately equal; otherwise, false.

Remarks

The method uses a predefined tolerance to determine whether the two values are approximately equal.