System::Decimal::CompareTo methode

Decimal::CompareTo method

Bepaalt of de waarde die wordt weergegeven door het huidige object kleiner is dan, gelijk is aan of groter is dan de waarde die wordt weergegeven door het opgegeven object.

int System::Decimal::CompareTo(const Decimal &d) const
ParameterTypeBeschrijving
dconst Decimal&De te vergelijken waarde

ReturnValue

-1 if the value represented by the current object is less than the value represented by d; 0 if the values are equal; 1 if the value represented by the current object is greater than the value represented by d

Zie ook