By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,727 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,727 IT Pros & Developers. It's quick & easy.

How to convert a UInt32 to Int

P: n/a
How do I convert a Uint32 to int..

Glenn
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <an*******@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
How do I convert a Uint32 to int...

Glenn

Nov 20 '05 #2

P: n/a
* "Emmet Gray" <eg****@hot.rr.com> 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/>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.