So you are trying to store 300 in 8 bit in unsigned number (as I understood by your explanation)
but bro range of 8 bit unsigned is (0 to 2 ^n -1) here n =8 , than 0 to 255 .
You need 9 bit to store 300 and your both conversion are right .
In d link mentioned below. Yeah. :)