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