Programming-Idioms

History of Idiom 76 > diff from v18 to v19

Edit summary for version 19 :

Version 18

2015-08-22, 21:57:19

Version 19

2015-08-22, 22:48:37

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 = i.toRadixString(2);
Doc URL
https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:core.int#id_toRadixString