Method ToDecimal
ToDecimal()
Attempts to convert JSON value to decimal.
Declaration
public decimal ToDecimal()
Returns
| Type | Description |
|---|---|
| System.Decimal | Converted decimal value. |
Exceptions
| Type | Condition |
|---|---|
| System.FormatException | The exception that is thrown when the format of an argument is invalid, or when a composite format string is not well formed. |
| System.InvalidCastException | The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow. |
| System.OverflowException | The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow. |