## XmlConvert::ToDecimal method


将 [String](../../../system/string/) 转换为 [Decimal](../../../system/decimal/) 等价物。

```cpp
static Decimal System::Xml::XmlConvert::ToDecimal(const String &s)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| s | const String\& | 要转换的字符串。 |

### ReturnValue

字符串的一个 **[Decimal](../../../system/decimal/)** 等价物。

## 另见

* Class [Decimal](../../../system/decimal/)
* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
