The SmallFloat type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | Byte315ToFloat | byteToFloat(b, mantissaBits=3, zeroExponent=15) |
![]() ![]() | Byte52ToFloat | byteToFloat(b, mantissaBits=5, zeroExponent=2) |
![]() ![]() | ByteToFloat | Converts an 8 bit float to a 32 bit float. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FloatToByte | 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. |
![]() ![]() | FloatToByte315 | floatToByte(b, mantissaBits=3, zeroExponent=15)
smallest non-zero value = 5.820766E-10 largest value = 7.5161928E9 epsilon = 0.125 |
![]() ![]() | FloatToByte52 | floatToByte(b, mantissaBits=5, zeroExponent=2)
smallest nonzero value = 0.033203125 largest value = 1984.0 epsilon = 0.03125 |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |