floatToByte(b, mantissaBits=5, zeroExponent=2)
smallest nonzero value = 0.033203125
largest value = 1984.0
epsilon = 0.03125

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static sbyte FloatToByte52(
	float f
)
Visual Basic
Public Shared Function FloatToByte52 ( _
	f As Single _
) As SByte
Visual C++
public:
static signed char FloatToByte52(
	float f
)

Parameters

f
Type: System..::..Single

[Missing <param name="f"/> documentation for "M:Lucene.Net.Util.SmallFloat.FloatToByte52(System.Single)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Util.SmallFloat.FloatToByte52(System.Single)"]

See Also