Converts this instance of Decimal to a UInt64.
[Visual Basic] Overloads Overridable Public Function ToUInt64() As UInt64 [C#] public virtual ulong ToUInt64(); [C++] public: virtual unsigned __int64 ToUInt64(); [JScript] public function ToUInt64() : 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