One of my course assignments it to be able to convert between decimal and binary.

One of the questions is convert 42.25 from Decimal to Binary

I get the answer 10101010 but i'm not sure if im right as i checked it on the internet and got the answer 101010.

for some reason i have 2 extra digits can anyone point me in the right direction.

any help would be much appreciated

Thanks Liam