Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Convert.ToUInt32 Method (Double)

.NET Framework 1.1

Converts the value of the specified double-precision floating point number to an equivalent 32-bit unsigned integer.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
<CLSCompliant(False)>
Overloads Public Shared Function ToUInt32( _
   ByVal value As Double _
) As UInt32
[C#]
[CLSCompliant(false)]
public static uint ToUInt32(
 double value
);
[C++]
[CLSCompliant(false)]
public: static unsigned int ToUInt32(
 double value
);
[JScript]
public
   CLSCompliant(false)
static function ToUInt32(
 value : double
) : UInt32;

Parameters

value
A double-precision floating point number.

Return Value

value rounded to the nearest 32-bit unsigned integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

Exceptions

Exception Type Condition
OverflowException value is less than zero or greater than UInt32.MaxValue.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Convert Class | Convert Members | System Namespace | Convert.ToUInt32 Overload List | Double

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.