Decimal..::..ToInt32 Method
Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static int ToInt32( decimal value )
<TemplateAttribute> _ Public Shared Function ToInt32 ( _ value As Decimal _ ) As Integer
[TemplateAttribute] public: static int^ ToInt32( Decimal^ value )
Parameters
- value
- Type: System..::..Decimal
Return Value
A 32-bit signed integer equivalent to the value of d.Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | d is less than MinValue or greater than MaxValue. |