MS calculator on windows 7 has a "programmers" mode. When I type in (in binary): 1111111111111111111111111111111111111111111111111111111111111111
and then click "Dec", the binary turns into -1. When I click Oct, the value turns into 1777777777777777777777
However, whenever I use an online converter, it doesn't work. I need to know how the calculator is doing this so I can emulate it in c++.