Method ToDecimal
ToDecimal()
Converts the value represented by this instance to a decimal
number.
Declaration
public override Decimal ToDecimal()
Returns
| Type | Description |
|---|---|
| Decimal | A decimal number equivalent to the number represented by the string represented by this instance. |
Overrides
Remarks
This method performs the same conversion as
ToDecimal(String).
Exceptions
| Type | Condition |
|---|---|
| FormatException | The string represented by this instance does not represent a decimal number. |
| OverflowException | If the string represented by this instance represents value less than MinValue or greater than MaxValue |