Safe Haskell | None |
---|
- cardinal :: Integral α => inf -> α -> Maybe Text
- rule :: (Integral α, Unknown β, Lit β, Add β, Mul β) => Rule α β
- cardinalRepr :: Repr inf
- symMap :: Integral α => Map α (Ctx (Exp i) -> Text)
- forms :: Text -> Text -> Text -> Text -> Text -> Ctx (Exp i) -> Text
- type PostfixRepr i = i -> Ctx (Exp i) -> Text
- scaleRepr :: PostfixRepr i -> [(ℤ, Ctx (Exp i) -> Text)] -> ScaleRepr i
- pelletierRepr :: PostfixRepr i -> PostfixRepr i -> [(ℤ, Ctx (Exp i) -> Text)] -> ScaleRepr i
- quantityName :: Text -> Text -> PostfixRepr i
- ordQuantityName :: Text -> Text -> Text -> Text -> PostfixRepr i
Documentation
cardinalRepr :: Repr infSource
type PostfixRepr iSource
Function that renders the postfix part of a large number name. Or more simply put, this calculates the "illion" part of "million", "billion", etc.
:: PostfixRepr i | Postfix for offset 0 names. |
-> PostfixRepr i | Postfix for offset 3 names. |
-> [(ℤ, Ctx (Exp i) -> Text)] | Additional symbol map entries. |
-> ScaleRepr i |
quantityName :: Text -> Text -> PostfixRepr iSource
ordQuantityName :: Text -> Text -> Text -> Text -> PostfixRepr iSource