Converts a Currency to an Int64.
[Visual Basic] Public Shared Function ToInt64( _ ByVal c As Currency _ ) As Long [C#] public static long ToInt64( Currency c ); [C++] public: static __int64 ToInt64( Currency c ); [JScript] public static function ToInt64( c : Currency ) : long;
The result of converting the Currency value to an Int64.
Exception Type | Condition |
---|---|
OverflowException | If the Currency value is outside the acceptable range. |
The ToInt64 method converts a Currency value to a long(Int64) value. The Currency value is rounded towards zero to the nearest integer value, and the result of this operation is returned as a Int64.
An overflow exception is thrown if the Currency value is less than MinValue or greater than MaxValue.