Uses of Class java.time.format.DecimalStyle (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
java.time.format.DecimalStyle

- Packages that use DecimalStyle
  Package | Description
  --- | ---
  java.time.format | Provides classes to print and parse dates and times.

- - ### Uses of DecimalStyle in java.time.format

    Fields in java.time.format declared as DecimalStyle
    Modifier and Type | Field and Description
    --- | ---
    `static DecimalStyle` | DecimalStyle.`STANDARD` The standard set of non-localized decimal style symbols.

    Methods in java.time.format that return DecimalStyle
    Modifier and Type | Method and Description
    --- | ---
    `DecimalStyle` | DateTimeFormatter.`getDecimalStyle()` Gets the DecimalStyle to be used during formatting.
    `static DecimalStyle` | DecimalStyle.`of(Locale locale)` Obtains the DecimalStyle for the specified locale.
    `static DecimalStyle` | DecimalStyle.`ofDefaultLocale()` Obtains the DecimalStyle for the default `FORMAT` locale.
    `DecimalStyle` | DecimalStyle.`withDecimalSeparator(char decimalSeparator)` Returns a copy of the info with a new character that represents the decimal point.
    `DecimalStyle` | DecimalStyle.`withNegativeSign(char negativeSign)` Returns a copy of the info with a new character that represents the negative sign.
    `DecimalStyle` | DecimalStyle.`withPositiveSign(char positiveSign)` Returns a copy of the info with a new character that represents the positive sign.
    `DecimalStyle` | DecimalStyle.`withZeroDigit(char zeroDigit)` Returns a copy of the info with a new character that represents zero.

    Methods in java.time.format with parameters of type DecimalStyle
    Modifier and Type | Method and Description
    --- | ---
    `DateTimeFormatter` | DateTimeFormatter.`withDecimalStyle(DecimalStyle decimalStyle)` Returns a copy of this formatter with a new DecimalStyle.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.