Copyright | (c) 2015-2016, Peter Trško |
---|---|
License | BSD3 |
Stability | experimental |
Portability | NoImplicitPrelude |
Safe Haskell | Safe |
Language | Haskell2010 |
Get number of digits of a number from a Int
-family of numbers in decimal
or hexadecimal representation.
- lengthInt :: Int -> Int
- lengthInt8 :: Int8 -> Int
- lengthInt16 :: Int16 -> Int
- lengthInt32 :: Int32 -> Int
- lengthInt64 :: Int64 -> Int
- lengthIntHex :: Int -> Int
- lengthInt8hex :: Int8 -> Int
- lengthInt16hex :: Int16 -> Int
- lengthInt32hex :: Int32 -> Int
- lengthInt64hex :: Int64 -> Int
Decimal (base 10)
lengthInt8 :: Int8 -> Int Source
Number of digits in a number ::
in base 10.Int8
lengthInt16 :: Int16 -> Int Source
Number of digits in a number ::
in base 10.Int16
lengthInt32 :: Int32 -> Int Source
Number of digits in a number ::
in base 10.Int32
lengthInt64 :: Int64 -> Int Source
Number of digits in a number ::
in base 10.Int64
Hexadecimal (base 16)
lengthIntHex :: Int -> Int Source
Number of digits in a number ::
in base 16.Int
lengthInt8hex :: Int8 -> Int Source
Number of digits in a number ::
in base 16.Int8
lengthInt16hex :: Int16 -> Int Source
Number of digits in a number ::
in base 16.Int16
lengthInt32hex :: Int32 -> Int Source
Number of digits in a number ::
in base 16.Int32
lengthInt64hex :: Int64 -> Int Source
Number of digits in a number ::
in base 16.Int64