Partager via


BitConverter.Int64BitsToDouble Method

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

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

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

Syntax

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

Parameters

Return Value

Type: System.Double
A double-precision floating point number whose value is equivalent to value.

Examples

The following example uses the Int64BitsToDouble method to convert the bit patterns of several Int64 values to Double 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.