HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletext-icu-0.8.0.5Haskell98

Data.Text.ICU.NumberFormatter

Number formatter implemented as bindings to the International Components for Unicode (ICU) libraries.

  • 1 type
  • 5 values
  • Packagetext-icu-0.8.0.5
  • Exports6
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceNumberFormatter.hsc

Data

1 declaration

Formatter

5 declarations

Here are some examples for number skeletons, see https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#examples for more:

Long Skeleton

Concise Skeleton | Input

en-US Output

Comments

percent .00 percent .00 scale/100 percent scale/100 measure-unit/length-meter unit-width-full-name compact-short compact-long group-min2 group-min2 sign-always sign-always sign-except-zero sign-except-zero

% | 25 .00 | 25 % .00 | 25 scale/100 | 0.3 %x100 | 0.3 unit/meter | 5 unit/meter | 5 K | 5000 KK | 5000 ,? | 5000 ,? | 15000 +! | 60 +! | 0 +? | 60 +? | 0

25% 25.00 25.00% 30 30% 5 m 5 meters 5K 5 thousand 5000 15,000 +60 +0 +60 0

Equivalent to Precision::fixedFraction(2) Multiply by 100 before formatting UnitWidth defaults to Short Require 2 digits in group for separator Show sign on all numbers Show sign on all numbers except 0