[Haskell] for large x, log (x::Integer) :: Double

Dylan Thurston dpt at lotus.bostoncoop.net
Sun Jul 11 03:14:11 EDT 2004

On Mon, Jul 05, 2004 at 10:08:04AM +0100, Edmund GRIMLEY EVANS wrote:
> Does Haskell provide any means of determining the number of binary
> digits in an Integer other than by repeated division?

See the Data.Bits library:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell/attachments/20040711/86954386/attachment.bin

More information about the Haskell mailing list