erosson/number-suffix - version: 1.1.0

for more information visit the package's GitHub page

Package contains the following modules:

erosson/number-suffix

Build Status

Format numbers with nice human-readable suffixes.

This is an Elm port of the useful parts of https://github.com/erosson/swarm-numberformat.

For example:

import NumberSuffix exposing (standardConfig)      

NumberSuffix.format standardConfig 1.0e6 --> "1.00 million"
NumberSuffix.format {standardConfig|getSuffix=NumberSuffix.suffixStandardShort} 1.0e6 --> "1.00M"