Programming-Idioms

History of Idiom 76 > diff from v32 to v33

Edit summary for version 33 :
New Erlang implementation by user [elbrujohalcon]

Version 32

2015-11-30, 12:37:30

Version 33

2015-12-18, 03:14:48

Idiom #76 Binary digits from an integer

Create the string s of integer x written in base 2.

E.g. 13 -> "1101"

Idiom #76 Binary digits from an integer

Create the string s of integer x written in base 2.

E.g. 13 -> "1101"

Code
S = io_lib:format("~.2B~n", [X]).
Doc URL
http://erldocs.com/current/stdlib/io.html?i=2&search=io:forma#format/3
Demo URL
http://tryerl.seriyps.ru/#id=1af3