Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Non Restoring Binary Division?

Can anyone help me with the Algorithm?

It seems as it sometimes works sometimes doesn't. I have probably missed something so I am not using it properly...

For example: it works great for:

1. 00001011 divided by 00000010

2. 00101101 divided by 00000101

3. 01111000 divided by 00010101

But it won't work for:

1. 00100100 divided by 00000110

2. 00011011 divided by 00011011

3. 00000001 divided by 00001111

I really have no idea where my work fails...

Maybe the number of iterations, or something else...

If anyone knows what might I have misunderstood, please tell me...

1 Answer

Relevance
  • 9 years ago
    Favorite Answer

    Be nice to see the algorithm. Perhaps #3 went wrong because it can't handle fractions. As for the others the Windows 7 calculator in programmer mode gets the right result but returns 0 for #3.

Still have questions? Get your answers by asking now.