C# Decimal MinValue
Description
Decimal MinValue
represents the smallest possible value
of Decimal. This field is constant and read-only.
Syntax
Decimal.MinValue
has the following syntax.
public static readonly decimal MinValue
Example
The following code example illustrates the use of the MinValue field.
using System;//from ww w. j ava 2s. c o m
class DecimalFieldsDemo
{
public static void Main( )
{
Console.WriteLine(Decimal.MinValue );
Console.WriteLine( Decimal.MaxValue + Decimal.MinValue );
Console.WriteLine(Decimal.MinValue / Decimal.MaxValue );
}
}
The code above generates the following result.