Skip to main content
Version: 4.0 (next)

Humanizer.MetricNumeralFormats

MetricNumeralFormats Enum

Flags for formatting the metric representation of numerals.

public enum MetricNumeralFormats

Fields

UseLongScaleWord 1

Use the metric prefix <a href="https://en\.wikipedia\.org/wiki/Long\_and\_short\_scales"\>long scale word</a>.

UseName 2

Use the metric prefix <a href="https://en\.wikipedia\.org/wiki/Metric\_prefix\#List\_of\_SI\_prefixes"\>name\</a> instead of the symbol.

UseShortScaleWord 4

Use the metric prefix <a href="https://en\.wikipedia\.org/wiki/Long\_and\_short\_scales"\>short scale word</a>.

WithSpace 8

Include a space after the numeral.

UseScaleWord 16

Use the scale word authored for System.Globalization.CultureInfo.CurrentUICulture. When that locale has no standalone word for the selected power of 1000, use the SI symbol. The locale-authored grammatical count form follows the displayed, scaled numeral. Inverse scale words are used only when the authored singular form applies; other counts use the SI symbol. For example, 1E9 renders as billion in en-US and Milliarde in de-DE.

KeepTrailingZeros 32

Include trailing zeros so the number of fractional digits matches the decimals argument. Has no effect when decimals is null.