Module Simantics/Formatting

This module is undocumented. This is a list of its definitions.

formatNumberLocale :: a -> Integer -> Integer -> String -> String

formatNumberLocale value minPrecision maxPrecision languageTag formats a number using the decimal conventions of the locale named by the IETF BCP 47 language tag, for example "en-US" or "fi-FI", with at least minPrecision and at most maxPrecision fraction digits.

Not-a-number formats as NaN and an infinite value as the infinity sign. The function fails if the value is not a number.