Copyright | (c) 2015, Peter Trško |
---|---|
License | BSD3 |
Stability | experimental |
Portability | NoImplicitPrelude |
Safe Haskell | Safe |
Language | Haskell2010 |
Get number of digits of a number from a Word
-family of numbers in decimal
or hexadecimal representation.
- lengthWord :: Word -> Int
- lengthWord8 :: Word8 -> Int
- lengthWord16 :: Word16 -> Int
- lengthWord32 :: Word32 -> Int
- lengthWord64 :: Word64 -> Int
- lengthWordHex :: Word -> Int
- lengthWord8hex :: Word8 -> Int
- lengthWord16hex :: Word16 -> Int
- lengthWord32hex :: Word32 -> Int
- lengthWord64hex :: Word64 -> Int
Decimal (base 10)
lengthWord :: Word -> Int Source
Number of digits in a number ::
in base 10.Word
lengthWord8 :: Word8 -> Int Source
Number of digits in a number ::
in base 10.Word8
lengthWord16 :: Word16 -> Int Source
Number of digits in a number ::
in base 10.Word16
lengthWord32 :: Word32 -> Int Source
Number of digits in a number ::
in base 10.Word32
lengthWord64 :: Word64 -> Int Source
Number of digits in a number ::
in base 10.Word64
Hexadecimal (base 16)
lengthWordHex :: Word -> Int Source
Number of digits in a number ::
in base 16.Word
lengthWord8hex :: Word8 -> Int Source
Number of digits in a number ::
in base 16.Word8
lengthWord16hex :: Word16 -> Int Source
Number of digits in a number ::
in base 16.Word16
lengthWord32hex :: Word32 -> Int Source
Number of digits in a number ::
in base 16.Word32
lengthWord64hex :: Word64 -> Int Source
Number of digits in a number ::
in base 16.Word64