Logo

Programming-Idioms

History of Idiom 142 > diff from v10 to v11

Edit summary for version 11 by programming-idioms.org:
New Csharp implementation by user [programming-idioms.org]

Version 10

2016-11-11, 16:17:51

Version 11

2017-06-07, 13:55:34

Idiom #142 Hexadecimal digits of an integer

Assign to string s the hexadecimal representation (base 16) of integer x.

E.g. 999 -> "3e7"

Idiom #142 Hexadecimal digits of an integer

Assign to string s the hexadecimal representation (base 16) of integer x.

E.g. 999 -> "3e7"

Extra Keywords
hex hexa radix
Extra Keywords
hex hexa radix
Code
String s = x.ToString("x")
Comments bubble
The argument "x" stands for hexadecimal, lowercase.
Doc URL
https://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx