Decimal.MaxValue

Syntax

MaxValue: Decimal;

Description

The MaxValue property returns the maximum value of the Decimal type.

Example

Sub UserProc;
Var
    d: Decimal;
Begin
    d := Decimal.MaxValue;
    Debug.WriteLine("Maximum value of the Decimal value:" + d.ToString);
End Sub UserProc;

After executing the example the console displays the maximum value of the Decimal type, that is, 7.922816E+28.

See also:

Decimal