Originally Posted by

**Debsta** Ok thanks. I've never seen that method before.

I don't see the preceding text as being of any use here.

The method I would use is repeated subtraction of powers of 2 (incl neg powers for after the "decimal" point ie 0.5, 0.25. 0.125, 0.0625, 0.03125, 0.015625 etc).

eg

0.703125 - 0.50 = 0.203125 ….. .1 (put a one if you can subtract)

can't subtract 0.25 ……..………… .10 (put a zero if you can't)

0.203125 - 0.125 = 0.078125 …. .101

0.078125 - 0.0625 = 0.015625 …. .1011

can't subtract 0.03125 ……………….. .10110

0.015625 - 0.015625 =0 …………… .101101

which is basically what you would do with an integer (using positive powers of 2).

The "repeated multiplication" way seems more efficient.