Logo

Programming-Idioms

History of Idiom 142 > diff from v33 to v34

Edit summary for version 34 by nopeslide:
New Erlang implementation by user [nopeslide]

Version 33

2019-09-26, 22:51:44

Version 34

2019-10-02, 07:27:46

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 = io_lib:fwrite("~.16B",[X]).
Doc URL
http://erlang.org/doc/man/io_lib.html#fwrite-2