[Mono-osx] Formatting Hexadecimal Numbers

Andrew Ayre andy at britishideas.com
Wed Sep 14 19:06:00 EDT 2011


The following:

int Signature = 123456;
string Output = String.Format("Signature is 0x{0:X8} ({0})", Signature);

produces:

Signature is 0x123456 (123456)

What am I doing wrong here?

thanks, Andy

-- 
Andy
PGP Key ID: 0xDC1B5864


More information about the Mono-osx mailing list