C# Console WriteLine(Single)
Description
Console WriteLine(Single)
writes the text representation
of the specified single-precision floating-point value, followed by the
current line terminator, to the standard output stream.
Syntax
Console.WriteLine(Single)
has the following syntax.
[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void WriteLine(
float value
)
Parameters
Console.WriteLine(Single)
has the following parameters.
value
- The value to write.
Returns
Console.WriteLine(Single)
method returns
Example
using System;//from w w w . j a va 2s .c o m
public class MainClass{
public static void Main(string[] args) {
Console.WriteLine((float)1.2);
}
}