Class finfo
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
Machine limits for floating point types.
public sealed class finfo
- Inheritance
-
finfo
- Inherited Members
Remarks
Constructors
finfo(DType)
Create finfo for the specified dtype.
public finfo(DType dtype)
Parameters
dtypeDTypeA floating point dtype (a Type, NPTypeCode, dtype string or DType — all convert implicitly).
Exceptions
- ArgumentException
Thrown if
dtypeis not a floating point type.
Properties
bits
Number of bits occupied by the type.
public int bits { get; }
Property Value
dtype
The NPTypeCode of this floating point type.
public NPTypeCode dtype { get; }
Property Value
eps
The difference between 1.0 and the next smallest representable float larger than 1.0.
public double eps { get; }
Property Value
epsneg
The difference between 1.0 and the next smallest representable float smaller than 1.0.
public double epsneg { get; }
Property Value
max
The largest representable number.
public double max { get; }
Property Value
maxexp
The smallest positive power of the base (2) that causes overflow.
public int maxexp { get; }
Property Value
min
The smallest representable number (typically -max).
public double min { get; }
Property Value
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
precision
The approximate number of decimal digits to which this kind of float is precise.
public int precision { get; }
Property Value
resolution
The approximate decimal resolution of this type (10^-precision).
public double resolution { get; }
Property Value
smallest_normal
The smallest positive normal number.
public double smallest_normal { get; }
Property Value
smallest_subnormal
The smallest positive subnormal number.
public double smallest_subnormal { get; }
Property Value
tiny
The smallest positive usable number (alias for smallest_normal).
public double tiny { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.