Logo

Programming-Idioms

History of Idiom 142 > diff from v18 to v19

Edit summary for version 19 by 1.7.4:
New JS implementation by user [1.7.4]

Version 18

2018-09-06, 21:37:25

Version 19

2019-01-24, 10:30:51

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
let s = x.toString (16)