C# Convert ToDouble(Int64)
Description
Convert ToDouble(Int64)
converts the value of the specified
64-bit signed integer to an equivalent double-precision floating-point
number.
Syntax
Convert.ToDouble(Int64)
has the following syntax.
public static double ToDouble(
long value
)
Parameters
Convert.ToDouble(Int64)
has the following parameters.
value
- The 64-bit signed integer to convert.
Returns
Convert.ToDouble(Int64)
method returns A double-precision floating-point number that is equivalent to value.
Example
/* w w w . j a va2s .c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToDouble((Int64)78));
}
}
The code above generates the following result.