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