|  | Lucene.Net
    3.0.3
    Lucene.Net is a .NET port of the Java Lucene Indexing Library | 
Floating point numbers smaller than 32 bits. More...
| Static Public Member Functions | |
| static sbyte | FloatToByte (float f, int numMantissaBits, int zeroExp) | 
| 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. | |
| static float | ByteToFloat (byte b, int numMantissaBits, int zeroExp) | 
| Converts an 8 bit float to a 32 bit float. | |
| static sbyte | FloatToByte315 (float f) | 
| floatToByte(b, mantissaBits=3, zeroExponent=15) smallest non-zero value = 5.820766E-10 largest value = 7.5161928E9 epsilon = 0.125 | |
| static float | Byte315ToFloat (byte b) | 
| byteToFloat(b, mantissaBits=3, zeroExponent=15) | |
| static sbyte | FloatToByte52 (float f) | 
| floatToByte(b, mantissaBits=5, zeroExponent=2) smallest nonzero value = 0.033203125 largest value = 1984.0 epsilon = 0.03125 | |
| static float | Byte52ToFloat (byte b) | 
| byteToFloat(b, mantissaBits=5, zeroExponent=2) | |
Floating point numbers smaller than 32 bits.
<version> $Id$ </version>
Definition at line 29 of file SmallFloat.cs.
| 
 | static | 
byteToFloat(b, mantissaBits=3, zeroExponent=15)
Definition at line 108 of file SmallFloat.cs.
| 
 | static | 
byteToFloat(b, mantissaBits=5, zeroExponent=2)
Definition at line 141 of file SmallFloat.cs.
| 
 | static | 
Converts an 8 bit float to a 32 bit float.
Definition at line 69 of file SmallFloat.cs.
| 
 | static | 
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. 
| f | the 32 bit float to be converted to an 8 bit float (byte) | 
| numMantissaBits | the number of mantissa bits to use in the byte, with the remainder to be used in the exponent | 
| zeroExp | the zero-point in the range of exponent values | 
Definition at line 47 of file SmallFloat.cs.
| 
 | static | 
floatToByte(b, mantissaBits=3, zeroExponent=15) 
smallest non-zero value = 5.820766E-10 
largest value = 7.5161928E9 
epsilon = 0.125 
Definition at line 92 of file SmallFloat.cs.
| 
 | static | 
floatToByte(b, mantissaBits=5, zeroExponent=2) 
smallest nonzero value = 0.033203125 
largest value = 1984.0 
epsilon = 0.03125 
Definition at line 125 of file SmallFloat.cs.
 1.8.3
 1.8.3