using System;
class MainClass
{
public static void Main( )
{
decimal value = -12345.62m;
Console.WriteLine(value.ToString());
// Display value using some standard format specifiers.
Console.WriteLine(value.ToString("G"));
Console.WriteLine(value.ToString("C"));
Console.WriteLine(value.ToString("F"));
}
}
/*
-12345.62
-12345.62
($12,345.62)
-12345.62
*/