C# Convert ToDouble(Single)
Description
Convert ToDouble(Single)
converts the value of the specified
single-precision floating-point number to an equivalent double-precision
floating-point number.
Syntax
Convert.ToDouble(Single)
has the following syntax.
public static double ToDouble(
float value
)
Parameters
Convert.ToDouble(Single)
has the following parameters.
value
- The single-precision floating-point number.
Returns
Convert.ToDouble(Single)
method returns A double-precision floating-point number that is equivalent to value.
Example
//from w ww . j a va2 s.co m
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToDouble((Single)78));
}
}
The code above generates the following result.