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

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

Data.NumberLength.Int

Contents

Description

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

Synopsis

Decimal (base 10)

lengthInt :: Int -> Int Source #

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

lengthInt8 :: Int8 -> Int Source #

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

lengthInt16 :: Int16 -> Int Source #

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

lengthInt32 :: Int32 -> Int Source #

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

lengthInt64 :: Int64 -> Int Source #

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

Hexadecimal (base 16)

lengthIntHex :: Int -> Int Source #

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

lengthInt8hex :: Int8 -> Int Source #

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

lengthInt16hex :: Int16 -> Int Source #

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

lengthInt32hex :: Int32 -> Int Source #

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

lengthInt64hex :: Int64 -> Int Source #

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