DoubleToInt64Bits Method

BitConverter.DoubleToInt64Bits Method

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static long DoubleToInt64Bits(
	double value


Type: System.Double
The number to convert.

Return Value

Type: System.Int64
A 64-bit signed integer whose value is equivalent to value.

The following example uses the DoubleToInt64Bits method to convert the bit patterns of several Double values to Int64 values.


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft