Equals()

Decimal::Equals(const Decimal&) const method

Determines if the values represented by the current object and the specified object are equal.

bool System::Decimal::Equals(const Decimal &d) const

Arguments

ParameterTypeDescription
dconst Decimal&The Decimal object to compare the current object with

Return Value

True if the value represented by the current and the specified objects are equal, otherwise - false

Decimal::Equals(const SharedPtr<Object>&) const method

Determines if the values represented by the current object and the specified object are equal.

bool System::Decimal::Equals(const SharedPtr<Object> &obj) const

Arguments

ParameterTypeDescription
objconst SharedPtr<Object>&The object to compare the current object with

Return Value

True if the value represented by the current and the specified objects are equal, otherwise - false

Decimal::Equals(const Decimal&, const Decimal&) method

Determines if the values represented by the specified objects are equal.

static bool System::Decimal::Equals(const Decimal &d1, const Decimal &d2)

Arguments

ParameterTypeDescription
d1const Decimal&The first comparand
d2const Decimal&The second comparand

Return Value

True if the values represented by d1 and d2 are equal, otherwise - false

See Also