for more information visit the package's GitHub page
Package contains the following modules:
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"