Programming-Idioms

History of Idiom 76 > diff from v22 to v23

Edit summary for version 23 :

Version 22

2015-08-22, 23:24:26

Version 23

2015-08-31, 11:23:52

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 = sprintf "%b", 13;