title: Dividing two large longs while retaining precision and accuracy
body: <p>I have two large <code>long</code> values, e.g. <code>long a = 106951484895</code> and <code>long b = 47666297253</code>. I want to divide one by the other, while still retaining precision and accuracy. <code>a / b</code> gives just <code>2</code>, which is neither precise nor accurate. <code>(double)a / b</code> returns <code>2.243754834308401</code> which is precise, but I don't know whether it is accurate. Is it accurate, or is there a better way?</p>