Method ToInt32
ToInt32()
Converts the value represented by this instance to a 32-bit signed
integer.
Declaration
public override int ToInt32()
Returns
| Type | Description |
|---|---|
| Int32 | The value rounded to the nearest 32-bit signed integer. |
Overrides
Remarks
This method performs the same conversion as
ToInt32(Double).
Exceptions
| Type | Condition |
|---|---|
| OverflowException | If this instance represents value less than MinValue or greater than MaxValue |