Converts a Single to an Int64.
[Visual Basic] Overloads Public Shared Function ToInt64( _ ByVal value As Single _ ) As Long [C#] public static long ToInt64( float value ); [C++] public: static __int64 ToInt64( float value ); [JScript] public static function ToInt64( value : float ) : long;
value rounded to the nearest integer. If value is exactly halfway between two whole numbers, this method returns the the integer that is even (i.e. 4.5 is converted to 4, and 5.5 is converted to 6).
Exception Type | Condition |
---|---|
OverflowException | is thrown if value is greater than Int64.MaxValue or less than Int64.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToInt64 Overload List