Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

NumberFormat

class NumberFormat

Module: System.Globalization
Assembly: System.Runtime.dll
Source file: NumberFormat.rvn

Inheritance: Object → NumberFormat

Immutable numeric conventions for the bounded built-in cultures. This describes formatting data; primitive numeric format specifiers remain separate APIs.

Properties

17 items
Currency: Currency Currency used by the culture's C-format convenience operation; invariant uses XXX.
CurrencyDecimalDigits: int Default currency display precision; this never changes stored amounts.
CurrencyDecimalSeparator: string Decimal separator for the bounded currency policy.
CurrencyDirectionMark: string Hebrew right-to-left mark placed before the amount and currency symbol; otherwise empty.
CurrencyGroupSeparator: string Group separator for the bounded currency policy.
CurrencyGroupSizes: int[] A fresh snapshot of currency grouping sizes.
CurrencyNegativePattern: int Familiar pattern index: 1 is minus-symbol-number; 8 is minus-number-space-symbol. The minus token comes from CurrencyNegativeSign, independently of ordinary number formatting.
CurrencyNegativeSign: string Currency minus token, including the Hebrew left-to-right mark where required.
CurrencyPositivePattern: int Familiar pattern index: 0 is symbol-number; 3 is number-space-symbol. Spaces are NBSP; Hebrew also inserts CurrencyDirectionMark.
CurrencySymbol: string Local symbol for the culture's default currency; invariant uses the generic currency sign.
Static member: Invariant: NumberFormat Returns invariant numeric conventions.
NegativeSign: string Negative sign used by the bounded numeric conventions; no bidi marks are inserted.
NumberDecimalDigits: int Default fractional precision for fixed-point numeric formatting.
NumberDecimalSeparator: string Decimal separator for ordinary numbers and culture-sensitive durations.
NumberGroupSeparator: string Thousands separator; Swedish uses U+00A0, not an ASCII space.
NumberGroupSizes: int[] A fresh array of grouping sizes, from the least significant group.
PositiveSign: string Positive sign used by the bounded numeric conventions.

Methods

5 items
Static member: Create(culture: Culture) -> NumberFormat Selects the built-in numeric conventions without resolving ambient preferences.
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString