Metode System::Decimal::Compare

Decimal::Compare method

Menentukan apakah nilai yang diwakili oleh objek Decimal pertama lebih kecil, sama dengan, atau lebih besar dari nilai yang diwakili oleh objek Decimal kedua.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ParameterTipeDeskripsi
d1const Decimal&Pembanding pertama
d2const Decimal&Pembanding kedua

ReturnValue

-1 if the value represented by d1 is less than the value represented by d2; 0 if the values are equal; 1 if the value represented by d1 is greater than the value represented by d2

Lihat Juga