Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. I need to divide very large numbers in java without using any external libraries (Homework)
  2. for i = the most significant bit the result could have, iterating down to 0
  3.   if (r + 2^i) * b <= a
  4.     r += 2^i