Fractional parts in base number systems other than base-10?

346 Views Asked by At

A long-standing question I've asked myself over and over again is how one might express fractional parts of a whole in base number systems other than 10. Is it truly as simple as base-10's x/y system? Or is it even possible? If it is, how might a computer express a fractional part of, say, binary or hexidecimal?

1

There are 1 best solutions below

3
On BEST ANSWER

I guess it should be as straightforward as x/y

for example 1/3 in base 10 would be 1/11 in binary

adding 1/3+ 1/3 =2/3 base 10 would be 1/11+1/11 = 10/11 in binary

adding 2/3+1/3 =1 should be 10/11+ 1/11= 11/11=1 in binary