The SmallFloat type exposes the following members.

Constructors

  NameDescription
Public methodSmallFloat
Initializes a new instance of the SmallFloat class

Methods

  NameDescription
Public methodStatic memberByte315ToFloat
byteToFloat(b, mantissaBits=3, zeroExponent=15)
Public methodStatic memberByte52ToFloat
byteToFloat(b, mantissaBits=5, zeroExponent=2)
Public methodStatic memberByteToFloat
Converts an 8 bit float to a 32 bit float.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFloatToByte
Converts a 32 bit float to an 8 bit float.
Values less than zero are all mapped to zero.
Values are truncated (rounded down) to the nearest 8 bit value.
Values between zero and the smallest representable value are rounded up.
Public methodStatic memberFloatToByte315
floatToByte(b, mantissaBits=3, zeroExponent=15)
smallest non-zero value = 5.820766E-10
largest value = 7.5161928E9
epsilon = 0.125
Public methodStatic memberFloatToByte52
floatToByte(b, mantissaBits=5, zeroExponent=2)
smallest nonzero value = 0.033203125
largest value = 1984.0
epsilon = 0.03125
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also