Converts a
CopyC#
double
value to a sortable signed
CopyC#
long
. The value is converted by getting their IEEE 754 floating-point "double format" bit layout and then some bits are swapped, to be able to compare the result as long. By this the precision is not reduced, but the value can easily used as a long.

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

Syntax

C#
public static long DoubleToSortableLong(
	double val
)
Visual Basic
Public Shared Function DoubleToSortableLong ( _
	val As Double _
) As Long
Visual C++
public:
static long long DoubleToSortableLong(
	double val
)

Parameters

val
Type: System..::..Double

[Missing <param name="val"/> documentation for "M:Lucene.Net.Util.NumericUtils.DoubleToSortableLong(System.Double)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Util.NumericUtils.DoubleToSortableLong(System.Double)"]

See Also