When converting from base10 to base5, how do I deal with floating point numbers?

Viewed 10

In regards to data representation, I am bit confused at how I would go about dealing with floating point numbers when manually converting between bases.

For example, the number 0.734, I wanted to convert using a division method. (Dividing by base I was trying to convert to)

0.734/5 = 0.146 with a remainder of 0.004

In the case of whole numbers, I could just do this with a division conversion of, say, 734 instead:

734/5 = 146 remainder 4
146/5 =  29 remainder 1
29/5  =   5 remainder 4
5/5   =   1 remainder 0
1/5   =   0 remainder 1

So 734 base 10 in base 5 would be 10414

However, I am not familiar with anything I can do with non-whole-number remainders. And regardless, when placing 0.734 into any converter, I get the result (0.33133333...). I am currently learning preliminary knowledge for assembly, so understanding how this works exactly is important to me.

0 Answers
Related