Yes Decimal 2 Hex is correct…
This helps… thanks!
Shawn Haigh
From:
Castro, Edwin Gabriel (Firing Systems Engr.) [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004
2:32 PM
To: Shawn Haigh;
[EMAIL PROTECTED]
Subject: RE: [Nant-users] bin 2
hex
I assume you mean decimal to hex…
Decimal (base 10)
Hexadecimal (base 16)
Binary (base 2)
Anyway, something like this might work:
static string DecToHex(int number)
{
return string.Format(“{0:X}”,
number);
}
string hex = DecToHex(108);
hex would equal “6C”.
us