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

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

Data.NumberLength.Integer

Contents

Description

Get number of digits of an Integer.

Since 0.2.0.0

Synopsis

Decimal (base 10)

lengthInteger :: Integer -> Int Source #

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

Since 0.2.0.0

Hexadecimal (base 16)

lengthIntegerHex :: Integer -> Int Source #

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

Since 0.2.0.0