Partager via


BitConverter.DoubleToInt64Bits Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Shared Function DoubleToInt64Bits ( _
    value As Double _
) As Long
[SecuritySafeCriticalAttribute]
public static long DoubleToInt64Bits(
    double value
)

Parameters

Return Value

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

Examples

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

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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