C# Convert ToSingle(UInt64)
Description
Convert ToSingle(UInt64)
converts the value of the specified
64-bit unsigned integer to an equivalent single-precision floating-point
number.
Syntax
Convert.ToSingle(UInt64)
has the following syntax.
[CLSCompliantAttribute(false)]
public static float ToSingle(
ulong value
)
Parameters
Convert.ToSingle(UInt64)
has the following parameters.
value
- The 64-bit unsigned integer to convert.
Returns
Convert.ToSingle(UInt64)
method returns A single-precision floating-point number that is equivalent to value.
Example
/* w ww . j av a 2 s. c om*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToSingle((UInt64)123));
}
}
The code above generates the following result.