C# Convert ToDouble(Byte)
Description
Convert ToDouble(Byte)
converts the value of the specified
8-bit unsigned integer to the equivalent double-precision floating-point
number.
Syntax
Convert.ToDouble(Byte)
has the following syntax.
public static double ToDouble(
byte value
)
Parameters
Convert.ToDouble(Byte)
has the following parameters.
value
- The 8-bit unsigned integer to convert.
Returns
Convert.ToDouble(Byte)
method returns The double-precision floating-point number that is equivalent to value.
Example
/*w w w . jav a 2 s . c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToDouble((byte)1));
}
}
The code above generates the following result.