Decimal Math.Max Method
Returns the larger of two decimal numbers.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Parameter value1 or value2, whichever is larger.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static decimal Max(
decimal value1,
decimal value2
)
Parameters
- value1 Decimal
- The first of two decimal numbers to compare.
- value2 Decimal
- The second of two decimal numbers to compare.
Return Value
DecimalParameter value1 or value2, whichever is larger.