Converts a specified Decimal to a UInt64.
[Visual Basic] Overloads Public Shared Function ToUInt64( _ ByVal d As Decimal _ ) As UInt64 [C#] public static ulong ToUInt64( Decimal d ); [C++] public: static unsigned __int64 ToUInt64( Decimal d ); [JScript] public static function ToUInt64( d : Decimal ) : UInt64;
The result's of converting the argument to a long (64 bits) unsigned integer.
Exception Type | Condition |
---|---|
OverflowException | is thrown if d is less than UInt64.MinValue or greater than UInt64.MaxValue. |
The ToUInt64method converts a Decimal value into a UInt64 (ulong) and returns it.
The Decimal value is rounded toward zero to the nearest integer value, and the result of this operation is returned as an unsigned, long integer.
Decimal Structure | Decimal Members | System Namespace | Decimal.ToUInt64 Overload List