How to convert a int to Binaty or Hex or XXX? 
Author Message
 How to convert a int to Binaty or Hex or XXX?



Tue, 24 May 2005 03:43:07 GMT  
 How to convert a int to Binaty or Hex or XXX?
For Hex,

int x=10;

x.ToString("x");
Console.WriteLine("x = {0:x}", x);

For Binary or other bases, you'll need to look at implementing you own
custom formatter.

--
Nick Holmes
Coyote Software, GmbH.



Thu, 26 May 2005 04:05:28 GMT  
 How to convert a int to Binaty or Hex or XXX?
How about the Convert Class?

---



Thu, 26 May 2005 05:20:09 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. converting int to Hex

2. Convert from int to hex

3. convert hex to int (About problem description)

4. Converting int to hex

5. Convert Int to Hex.

6. converting INT to HEX

7. SCstring (hex) converted to Int.

8. How convert from Hex string to int?

9. Summary: Converting ascii hex to pure hex values

10. Converting ascii hex values to hex bytes

11. Need Help: Converting from hex to integer and back to hex

12. converting unsigned int to signed int

 

 
Powered by phpBB® Forum Software