## Decimal::Equals(const Decimal\&) const method


确定当前对象和指定对象所表示的值是否相等。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| d | const Decimal\& | 用于与当前对象比较的 [Decimal](../) 对象 |

### ReturnValue

如果当前对象和指定对象所表示的值相等则为 true，否则为 false

## 另见

* Class [Decimal](../)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## Decimal::Equals(const SharedPtr\<Object\>\&) const method


确定当前对象和指定对象所表示的值是否相等。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | 用于与当前对象比较的对象 |

### ReturnValue

如果当前对象和指定对象所表示的值相等则为 true，否则为 false

## 另见

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## Decimal::Equals(const Decimal\&, const Decimal\&) method


确定指定对象所表示的值是否相等。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| d1 | const Decimal\& | 第一个比较数 |
| d2 | const Decimal\& | 第二个比较数 |

### ReturnValue

如果 **d1** 和 **d2** 表示的值相等则为 true，否则为 false

## 另见

* Class [Decimal](../)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
