Closed aswaterman closed 8 years ago
The previous ones were incorrect for large inputs because of inexact floating-point arithmetic. These use BigInt so are exact. This also fixes log2Up(0) to conform to the documentation.
The previous ones were incorrect for large inputs because of inexact floating-point arithmetic. These use BigInt so are exact. This also fixes log2Up(0) to conform to the documentation.