Feature #1483
IsPowerOf2 for rationals
Status:
Closed
Priority:
Normal
Assignee:
Category:
New Function
Target version:
Description
Add new function IsPowerOf2
for BigRat
.
It already exists for BigInt
.
History
#1 Updated by John Abbott over 3 years ago
- Status changed from New to Feedback
- Assignee set to John Abbott
- % Done changed from 0 to 90
- Estimated time set to 0.25 h
Added new function IsPowrerOf2
for BigRat
. Gives false
if arg is not strictly positive.
Impl is simple rather than extra fast.
#2 Updated by John Abbott over 3 years ago
- Status changed from Feedback to Closed
- % Done changed from 90 to 100