Programming-Idioms

History of Idiom 76 > diff from v38 to v39

Edit summary for version 39 :
New Csharp implementation by user [javasucks]

Version 38

2016-02-16, 20:27:17

Version 39

2016-02-17, 11:21:46

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
var s = Convert.ToString(x, 2);