HPS.Float

class HPS.Float : public IDisposable

The Float class is a concept class that exposes a number of useful utilities for working with floating point numbers.

Public Static Functions

bool Equals (float a, float b)

Checks two floats for equality within a specified tolerance. The tolerance is specified in float increments that scale with the floats themselves.

bool Equals (float a, float b, int tolerance)

Checks two floats for equality within a specified tolerance. The tolerance is specified in float increments that scale with the floats themselves.

bool IsAbnormal (float a)

See if the value is not “normal” (infinite or NaN)

bool IsInfinite (float a)

See if the value is either infinity

bool IsNAN (float a)

See if the value is Not-A-Number