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