| 1 | initial version |
What about using logarithms and rounding from below ?
| 2 | No.2 Revision |
What about using logarithms and rounding from below using the floor()` function ?
Another possibility could be to look at the size of the binary representation of your integer a by using a.binary() or a.bits().
| 3 | No.3 Revision |
What about using logarithms and rounding from below using the floor()` floor() function ?
Another possibility could be to look at the size of the binary representation of your integer a by using a.binary() or a.bits().
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.