number-length: Number of digits in a number in decimal and hexadecimal representation.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
There are situations when it is necessary to know the length of a number in decimal or hexadecimal form. In example when allocating buffer while serializing a number in to binary or human readable format.
λ> numberLength (123 :: Int) 3
λ> numberLengthHex (123 :: Int) -- 123 = 7b in hex 2
[Skip to Readme]
Properties
Versions | 0.1.0.0, 0.1.0.1, 0.1.0.1, 0.2.0.0, 0.2.1.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.5 && <5), tagged (>=0.6 && <0.9) [details] |
License | BSD-3-Clause |
Copyright | (c) 2015-2016, Peter Trško |
Author | Peter Trško |
Maintainer | peter.trsko@gmail.com |
Category | Data |
Home page | https://github.com/trskop/number-length |
Source repo | head: git clone git://github.com/trskop/number-length.git this: git clone git://github.com/trskop/number-length.git(tag v0.1.0.1) |
Uploaded | by PeterTrsko at 2016-02-10T21:30:18Z |
Modules
[Index]
Flags
Manual Flags
Name | Description | Default |
---|---|---|
pedantic | Pass additional warning flags to GHC. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- number-length-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees