Decimal.Min(Decimal, Decimal) Metod

Definition

Jämför två värden med beräkning som är mindre.

public:
 static System::Decimal Min(System::Decimal x, System::Decimal y) = System::Numerics::INumber<System::Decimal>::Min;
public static decimal Min(decimal x, decimal y);
static member Min : decimal * decimal -> decimal
Public Shared Function Min (x As Decimal, y As Decimal) As Decimal

Parametrar

x
Decimal

Värdet som ska jämföras med y.

y
Decimal

Värdet som ska jämföras med x.

Returer

x om det är mindre än y, annars , y.

Implementeringar

Kommentarer

För IFloatingPoint<TSelf>matchar den här metoden funktionen IEEE 754:2019 minimum . Detta kräver att NaN-indata sprids tillbaka till anroparen och -0.0 att de behandlas som mindre än +0.0.

Gäller för