Popularity
5.6
Declining
Activity
0.0
Stable
3
5
2

Monthly Downloads: 14
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Text    

formattable alternatives and similar packages

Based on the "Text" category.
Alternatively, view formattable alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of formattable or a related project?

Add another 'Text' Package

README

formattable

A business-quality formatting package with reified formats for multiple data types

This package provides excellent support for formatting numbers including the following configurable features:

  • units (thousands, millions, percent, etc)
  • prefixes ($, £, etc)
  • suffixes (%, ¢, etc)
  • decimal separators
  • thousands separators
  • styles for fixed decimal notation, scientific notation, and SI prefixes
  • specify precision as number of decimal places or sig figs
  • different styles of negative numbers

Examples

  • runFormat (intFmt { _nfStyle = SIStyle }) (225142.3 :: Double) == "225k"

See the test suite for more examples.