package
0.21.0
Repository: https://go.googlesource.com/text
Documentation: pkg.go.dev

# Functions

No description provided by the author
InfoFromLangID returns a Info for the given compact language identifier and numbering system identifier.
InfoFromTag returns a Info for the given language tag.
ParsePattern extracts formatting information from a CLDR number pattern.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
away from zero.
CLDRVersion is the CLDR version from which the tables in this package are derived.
Use space instead of plus sign.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Default.
No description provided by the author
No description provided by the author
Common pattern.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
towards the nearest integer, or away from zero if equidistant.
towards the nearest integer, or towards an even number if equidistant.
towards the nearest integer, or towards zero if equidistant.
towards negative infinity.
towards infinity.
towards zero.

# Structs

A Decimal represents a floating point number in decimal format.
Digits represents a floating point number represented in digits of the base in which a number is to be displayed.
Formatter contains all the information needed to render a number.
Info holds number formatting configuration data.
Pattern holds information for formatting numbers.
A RoundingContext indicates how a number should be converted to digits.

# Interfaces

A Converter converts a number into decimals according to the given rounding criteria.
A VisibleDigits computes digits, comma placement and trailing zeros as they will be shown to the user.

# Type aliases

A PatternFlag is a bit mask for the flag field of a Pattern.
RoundingMode determines how a number is rounded to the desired precision.
A SymbolType identifies a symbol of a specific kind.