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 |