List Info

Thread: C-Sharp (C#) Group: Re: Convert int to hex




C-Sharp (C#) Group: Re: Convert int to hex
user name
2006-09-04 21:14:35
Davy B schrieb:

> What is the tidiest way to convert an int32 to a
four-digit hex?  I can
> convert it to hex easily using
ToString("X"), but if x=15 it converts
> to "F".  I want to convert it to
"000F".

ToString("X4")

*hth*

P_hil


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )