bit-representation

Question about relations between two numbers

Is there is any relation between numbers' bits when one is divisible by another? What is the relation between the bits of 36 and the bit sequences of 9 or 4 or 12, or between 10 (1010) and 5 (101), or 21 (10101) and 7 (00111)? Thanks. I am sorry if some sentence is not correct, but I hope you understand what I want. ...

How To Represent 0.1 In Floating Point Arithmetic And Decimal

I am trying to understand floating point arithmetic better and have seen a few links to 'What Every Computer Scientist Should Know About Floating Point Arithmetic' I still don't understand how a number like 0.1 or 0.5 is stored in floats and as decimals Can someone please explain how it is laid out is memory I know about the float be...