convert integer to short unsigned integer
-
Thursday, August 10, 2006 8:37 PM
Hi,
How can I convert integer to short unsigned integer??
Thanks,
All Replies
-
Friday, August 11, 2006 6:17 AM
hi,
use casting.
int i = 5;
ushort s = ( ushort ) i ;
uint ui = ( uint ) i;I hope it'll help you.,
soemoe- Proposed As Answer by BoovendanM Thursday, September 15, 2011 4:18 PM
-
Tuesday, September 11, 2012 9:33 PM
Impossible. When you make a uint value, it just signs it. And a ushort value is just a uint16 value with another name.
-
Thursday, September 13, 2012 2:11 PM
Impossible. When you make a uint value, it just signs it. And a ushort value is just a uint16 value with another name.
A uint value is not signed.

