Logo

Programming-Idioms

History of Idiom 142 > diff from v32 to v33

Edit summary for version 33 by micmus:
New Elixir implementation by user [micmus]

Version 32

2019-09-26, 22:21:22

Version 33

2019-09-26, 22:51:44

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 = Integer.to_string(x, 16)
Doc URL
https://hexdocs.pm/elixir/Integer.html#to_string/2