C# Decimal MaxValue
Description
Decimal MaxValue
represents the largest possible value
of Decimal. This field is constant and read-only.
Syntax
Decimal.MaxValue
has the following syntax.
public static readonly decimal MaxValue
Example
The following code sample illustrates the use of MaxValue :
// w w w . j a va 2 s . co m
using System;
class MainClass
{
public static void Main()
{
System.Console.WriteLine(Decimal.MaxValue);
}
}
The code above generates the following result.