Limited output of toBinary() to number of wanted bits.