System.BitConverter.DoubleToInt64Bits Method

Converts the specified double-precision floating point number to a 64-bit signed integer.

Syntax

public static long DoubleToInt64Bits (double value)

Parameters

value
The number to convert.

Returns

A 64-bit signed integer whose value is equivalent to value.

Remarks

The order of bits in the integer returned by the BitConverter.DoubleToInt64Bits(double) method depends on whether the computer architecture is little-endian or big-endian.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0