C# Console WriteLine(Decimal)
Description
Console WriteLine(Decimal)
writes the text representation
of the specified Decimal value, followed by the current line terminator,
to the standard output stream.
Syntax
Console.WriteLine(Decimal)
has the following syntax.
[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void WriteLine(
decimal value
)
Parameters
Console.WriteLine(Decimal)
has the following parameters.
value
- The value to write.
Returns
Console.WriteLine(Decimal)
method returns
Example
using System;/* ww w . j a v a 2s . c o m*/
public class Example
{
public static void Main()
{
Console.WriteLine((Decimal)123);
}
}