|
| ||||||||||
| Tags: convert, int, uint |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How can i convert c# 'uint' to 'int'
|
|
#2
| ||||
| ||||
| Re: How can i convert c# 'uint' to 'int'
When an integer literal has no suffix, its type is the first of these types in which its value can be represented: int, uint, long, ulong. In this example, it is uint. You can also use the suffix u or U, like this: Quote:
|
|
#3
| ||||
| ||||
| Re: How can i convert c# 'uint' to 'int'
In order to do this, you'll need to convert each element in a loop. You need to do the following code for doing so. Quote:
|
|
#4
| |||
| |||
|
This code: uint x = 5;produces this output: The value of int y is 5 |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How can i convert c# 'uint' to 'int'" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to convert from ISO to DMG | bevan | Operating Systems | 4 | 11-11-2010 06:47 AM |
| Convert .mkv to dvd/avi | Theo | Windows Software | 7 | 15-07-2010 07:32 PM |
| Convert mpg to mov mac | Macfly | Operating Systems | 2 | 01-09-2009 01:12 PM |
| Place a uint > 255 in a buffer | Elijah | Software Development | 4 | 06-04-2009 11:40 PM |
| Convert video to iPod, Convert iTunes video, Convert DivX to MP4 | tommyhills | MediaCenter | 1 | 26-07-2008 02:30 AM |