Converts a Decimal to a UInt64.
[Visual Basic] Overloads Public Shared Function ToUInt64( _ ByVal value As Decimal _ ) As UInt64 [C#] public static ulong ToUInt64( Decimal value ); [C++] public: static unsigned __int64 ToUInt64( Decimal value ); [JScript] public static function ToUInt64( value : Decimal ) : UInt64;
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 UInt64.MaxValue or less than UInt64.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToUInt64 Overload List