Copyright | (c) Andrew Lelechenko 2015-2016 |
---|---|
License | GPL-3 |
Maintainer | andrew.lelechenko@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Data.FastDigits.Internal
Description
- selectPower :: Word# -> (#Word#, Word##)
- selectPower' :: Word -> (Word, Word)
Documentation
selectPower :: Word# -> (#Word#, Word##) #
Take an integer base and return (pow, base^pow), where base^pow <= maxBound and pow is as large as possible.
selectPower' :: Word -> (Word, Word) #
Take an integer base and return (pow, base^pow), where base^pow <= maxBound and pow is as large as possible.