Table of Contents

Method IsCloseTo

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

IsCloseTo(double, double, double)

Indicates whether two given values are close to each other.

public static bool IsCloseTo(this double a, double b, double epsilon = 1E-05)

Parameters

a double

First value to probe.

b double

Second value to probe.

epsilon double

Value that limits difference.

Returns

bool

True if difference between two values less then epsilon; otherwise false.