Change long/long true division to return as many good bits as it can;
e.g., (1L << 40000)/(1L << 40001) returns 0.5, not Inf or NaN or whatever.
Showing
Please
register
or
sign in
to comment
e.g., (1L << 40000)/(1L << 40001) returns 0.5, not Inf or NaN or whatever.