Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BitConverter.DoubleToInt64Bits Method

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

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

[SecuritySafeCriticalAttribute]
public static long DoubleToInt64Bits(
	double value
)

Parameters

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.

Silverlight

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

ADD
Show:
© 2015 Microsoft