Logo

Programming-Idioms

History of Idiom 142 > diff from v13 to v14

Edit summary for version 14 by Oldboy:
New Python implementation by user [Oldboy]

Version 13

2017-08-21, 19:44:58

Version 14

2017-10-28, 11:11:15

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
s = format(x, 'x')