PC Review


Reply
Thread Tools Rate Thread

How to convert a UInt32 to Int

 
 
=?Utf-8?B?R2xlbm4gV2lsc29u?=
Guest
Posts: n/a
 
      24th May 2004
How do I convert a Uint32 to int..

Glenn
 
Reply With Quote
 
 
 
 
Emmet Gray
Guest
Posts: n/a
 
      24th May 2004
The quick answer is.... Convert.ToInt32(obj)

But, as you're probably aware, there is a probability of overflow.

Betcha can't wait for VStudio2005 where we get unsigned types!

"Glenn Wilson" <(E-Mail Removed)> wrote in message
news:711C190F-A100-487C-A847-(E-Mail Removed)...
> How do I convert a Uint32 to int...
>
> Glenn



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      24th May 2004
* "Emmet Gray" <(E-Mail Removed)> scripsit:
> The quick answer is.... Convert.ToInt32(obj)
>
> But, as you're probably aware, there is a probability of overflow.
>
> Betcha can't wait for VStudio2005 where we get unsigned types!


.... but there will still be an overflow...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert Uint32 to System.drawing.color Yaniv Microsoft VB .NET 5 24th Feb 2007 04:20 AM
RGB from UINT32 Russ Green Microsoft VB .NET 2 24th Mar 2005 07:37 AM
How to convert fractal seconds to UInt32 ? =?Utf-8?B?S25vcHBlcg==?= Microsoft Dot NET 0 25th Nov 2004 12:55 PM
help with UInt32 shachar Microsoft VB .NET 2 10th Oct 2004 09:47 AM
How to convert Datetime to UInt32 XingZheng Microsoft Dot NET Framework Forms 4 30th Apr 2004 07:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:22 AM.