Are there positive ints a,b s.t. floor((double)a/b)!=a/b ? (C expressions, 32-bit int)
-
-
2^54 - 1 isn't representable as a double; are you sure you don't mean 2^53 - 1?
-
Indeed, 2^53 - 1.
-
The >1ulp bound is clear converting the division to geometric series, treating denominator as 1-x.
End of conversation
New conversation -
-
-
Yeah, the set of results of division do not come very close to halfway cases.
-
Halfway is not the concern. Rounding upward is.
-
I'm using "halfway cases" here as quick and dirty shorthand for "bad rounding cases", which is horribly imprecise, but it's the weekend.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.