Table of Contents

Class finfo

Namespace
NumSharp
Assembly
NumSharp.dll

Machine limits for floating point types.

public sealed class finfo
Inheritance
finfo
Inherited Members
Extension Methods

Remarks

Constructors

finfo(NPTypeCode)

Create finfo for the specified NPTypeCode.

public finfo(NPTypeCode typeCode)

Parameters

typeCode NPTypeCode

A floating point type code.

Exceptions

ArgumentException

Thrown if typeCode is not a floating point type.

finfo(Type)

Create finfo for the specified CLR type.

public finfo(Type type)

Parameters

type Type

A CLR floating point type.

Exceptions

ArgumentException

Thrown if type is not a floating point type.

Properties

bits

Number of bits occupied by the type.

public int bits { get; }

Property Value

int

dtype

The NPTypeCode of this floating point type.

public NPTypeCode dtype { get; }

Property Value

NPTypeCode

eps

The difference between 1.0 and the next smallest representable float larger than 1.0.

public double eps { get; }

Property Value

double

epsneg

The difference between 1.0 and the next smallest representable float smaller than 1.0.

public double epsneg { get; }

Property Value

double

max

The largest representable number.

public double max { get; }

Property Value

double

maxexp

The smallest positive power of the base (2) that causes overflow.

public int maxexp { get; }

Property Value

int

min

The smallest representable number (typically -max).

public double min { get; }

Property Value

double

minexp

The most negative power of the base (2) consistent with there being no leading 0s in the mantissa.

public int minexp { get; }

Property Value

int

precision

The approximate number of decimal digits to which this kind of float is precise.

public int precision { get; }

Property Value

int

resolution

The approximate decimal resolution of this type (10^-precision).

public double resolution { get; }

Property Value

double

smallest_normal

The smallest positive normal number.

public double smallest_normal { get; }

Property Value

double

smallest_subnormal

The smallest positive subnormal number.

public double smallest_subnormal { get; }

Property Value

double

tiny

The smallest positive usable number (alias for smallest_normal).

public double tiny { get; }

Property Value

double

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.