System::Decimal::Compare विधि

Decimal::Compare method

निर्धारित करता है कि पहले Decimal ऑब्जेक्ट द्वारा प्रतिनिधित्व किया गया मान दूसरे Decimal ऑब्जेक्ट द्वारा प्रतिनिधित्व किए गए मान से कम, बराबर या अधिक है।

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
पैरामीटरप्रकारविवरण
d1const Decimal&पहला तुलनात्मक मान
d2const Decimal&दूसरा तुलनात्मक मान

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

संबंधित देखें