Inheritance diagram for HPS.Float:

Public Member Functions

virtual void Dispose ()
 
override bool Equals (System.Object obj)
 
 Float (HPS.Float in_that)
 
override int GetHashCode ()
 

Static Public Member Functions

static float C2F (byte x)
 
static bool Equals (float a, float b, int tolerance)
 
static bool Equals (float a, float b)
 
static bool Equals (double a, double b, int tolerance)
 
static bool Equals (double a, double b)
 
static UInt32 extract_sign_bit (float a)
 
static UInt32 extract_sign_bit (double a)
 
static UInt32 extract_uint32_t (float a)
 
static bool IsAbnormal (float a)
 
static bool IsAbnormal (double a)
 
static bool IsInfinite (float a)
 
static bool IsInfinite (double a)
 
static bool IsNAN (float a)
 
static bool IsNAN (double a)
 
static bool match (float a, float b)
 
static bool match (double a, double b)
 
static bool operator!= (HPS.Float a, HPS.Float b)
 
static bool operator== (HPS.Float a, HPS.Float b)
 
static byte unit_to_byte (float a)
 
static byte unit_to_byte_scaled (float a, byte mix)
 

Protected Member Functions

virtual void deleteCptr ()
 

Protected Attributes

bool cMemOwn
 
HandleRef cptr
 

Detailed Description

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

Member Function Documentation

◆ Equals() [1/2]

static bool HPS.Float.Equals ( float  a,
float  b,
int  tolerance 
)
inlinestatic

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

◆ Equals() [2/2]

static bool HPS.Float.Equals ( float  a,
float  b 
)
inlinestatic

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

◆ IsAbnormal()

static bool HPS.Float.IsAbnormal ( float  a)
inlinestatic

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

◆ IsInfinite()

static bool HPS.Float.IsInfinite ( float  a)
inlinestatic

See if the value is either infinity

◆ IsNAN()

static bool HPS.Float.IsNAN ( float  a)
inlinestatic

See if the value is Not-A-Number


The documentation for this class was generated from the following file:
  • internals/hps_core/source/cs/HPS.Float.cs