number-length-0.2.1.0: Number of digits in a number in decimal and hexadecimal representation.

Copyright(c) 2015 Peter Trško
LicenseBSD3
Stabilityexperimental
PortabilityNoImplicitPrelude
Safe HaskellSafe
LanguageHaskell2010

Data.NumberLength.Word

Contents

Description

Get number of digits of a number from a Word-family of numbers in decimal or hexadecimal representation.

Synopsis

Decimal (base 10)

lengthWord :: Word -> Int Source #

Number of digits in a number :: Word in base 10.

lengthWord8 :: Word8 -> Int Source #

Number of digits in a number :: Word8 in base 10.

lengthWord16 :: Word16 -> Int Source #

Number of digits in a number :: Word16 in base 10.

lengthWord32 :: Word32 -> Int Source #

Number of digits in a number :: Word32 in base 10.

lengthWord64 :: Word64 -> Int Source #

Number of digits in a number :: Word64 in base 10.

Hexadecimal (base 16)

lengthWordHex :: Word -> Int Source #

Number of digits in a number :: Word in base 16.

lengthWord8hex :: Word8 -> Int Source #

Number of digits in a number :: Word8 in base 16.

lengthWord16hex :: Word16 -> Int Source #

Number of digits in a number :: Word16 in base 16.

lengthWord32hex :: Word32 -> Int Source #

Number of digits in a number :: Word32 in base 16.

lengthWord64hex :: Word64 -> Int Source #

Number of digits in a number :: Word64 in base 16.