Show / Hide Table of Contents

Class NumberOptions

The options to apply when NumberFormatter a number.

Inheritance
Object
NumberOptions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sepia.Globalization.Numbers
Assembly: Sepia.Globalization.dll
Syntax
public class NumberOptions

Fields

| Improve this Doc View Source

Default

The default number options.

Declaration
public static readonly NumberOptions Default
Field Value
Type Description
NumberOptions

Style = Decimal, UseGrouping = true.

Properties

| Improve this Doc View Source

Length

The length for formatting numeric quantities.

Declaration
public NumberLength Length { get; set; }
Property Value
Type Description
NumberLength
Remarks

If the locale does not define a pattern for the number length, then the defaul number length is used.

| Improve this Doc View Source

Style

The rules for formatting numeric quantities.

Declaration
public NumberStyle Style { get; set; }
Property Value
Type Description
NumberStyle

Default value is Decimal.

| Improve this Doc View Source

UseGrouping

Determines if grouping seperators should be used.

Declaration
public bool UseGrouping { get; set; }
Property Value
Type Description
Boolean

Defaults to true.

Remarks

When true, clusters of integer digits are seperated with the Group.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX