C# Convert ToChar(Single)
Description
Convert ToChar(Single)
calling this method always throws
InvalidCastException.
Syntax
Convert.ToChar(Single)
has the following syntax.
public static char ToChar(
float value
)
Parameters
Convert.ToChar(Single)
has the following parameters.
value
- The single-precision floating-point number to convert.
Returns
Convert.ToChar(Single)
method returns This conversion is not supported. No value is returned.
Example
using System;/* ww w. ja v a 2 s . c om*/
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToChar(88.0F));
}
}
The code above generates the following result.