C++ implements decimal to binary operations