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 value represented by this instance. |
Overrides
Remarks
This method performs the same conversion as
ToDecimal(double).
Exceptions
| Type | Condition |
|---|---|
| OverflowException | If this instance represents value less than MinValue or greater than MaxValue |