Binary to int