easy and fast way to convert an int to binary?

var result = Convert.ToString(number, 2);

– Almost the only use for the (otherwise useless) Convert class.

Leave a Comment