Table of Contents

Class BaseTypeExtensions

Namespace
ReFuel
Assembly
ReFuel.Common.dll
public static class BaseTypeExtensions
Inheritance
BaseTypeExtensions
Inherited Members

Methods

GetStableHashCode(string)

public static int GetStableHashCode(this string str)

Parameters

str string

Returns

int

IsNear(double, double, double, double)

Python's math.isclose()

public static bool IsNear(this double a, double b, double relativeTolerance = 1E-09, double absoluteTolerance = 0)

Parameters

a double

Double A

b double

Double B

relativeTolerance double

Tolerance relative to the double values.

absoluteTolerance double

Absolute tolerance.

Returns

bool

True if the values are near.

IsNear(float, float, float, float)

Python's math.isclose()

public static bool IsNear(this float a, float b, float relativeTolerance = 1E-09, float absoluteTolerance = 0)

Parameters

a float

Float A

b float

Float B

relativeTolerance float

Tolerance relative to the float values.

absoluteTolerance float

Absolute tolerance.

Returns

bool

True if the values are near.