Implement converting decimal (integer or float) into a binary string.