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.Natural

Contents

Description

Get number of digits of a Natural.

Since 0.2.0.0

Synopsis

Decimal (base 10)

lengthNatural :: Natural -> Int Source #

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

Since 0.2.0.0

Hexadecimal (base 16)

lengthNaturalHex :: Natural -> Int Source #

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

Since 0.2.0.0