MathMax Method (Decimal, Decimal) |
Returns the larger of two decimal numbers.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static decimal Max(
decimal val1,
decimal val2
)
Parameters
- val1
- Type: SystemDecimal
The first of two decimal numbers to compare. - val2
- Type: SystemDecimal
The second of two decimal numbers to compare.
Return Value
Type:
DecimalParameter
val1 or
val2, whichever is larger.
See Also