Count like a computer: On the binary representation of numbers and precision issues arising therefrom