🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › text › NumberFormat.html
NumberFormat (Java SE 21 & JDK 21)
January 20, 2026 - The default implementation provides rounding modes defined in RoundingMode for formatting numbers. It uses the round half-even algorithm. To change the rounding mode use setRoundingMode. The NumberFormat returned by the static factory methods is configured to round floating point numbers using half-even rounding (see RoundingMode.HALF_EVEN) for formatting.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › text › class-use › NumberFormat.html
Uses of Class java.text.NumberFormat (Java SE 21 & JDK 21)
October 20, 2025 - Returns a new NumberFormat instance which formats percentage values for the specified locale. Constructors in javax.swing.text with parameters of type NumberFormat
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › text › spi › NumberFormatProvider.html
NumberFormatProvider (Java SE 21 & JDK 21)
October 20, 2025 - Returns a new NumberFormat instance which formats a number in its compact form for the specified locale and formatStyle.
🌐
Jérôme Pilliet
igm.univ-mlv.fr › ~juge › javadoc-21 › api › java.base › java › text › NumberFormat.html
NumberFormat (Java SE 21 & JDK 21) - IGM
The default implementation provides rounding modes defined in RoundingMode for formatting numbers. It uses the round half-even algorithm. To change the rounding mode use setRoundingMode. The NumberFormat returned by the static factory methods is configured to round floating point numbers using half-even rounding (see RoundingMode.HALF_EVEN) for formatting.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › text › DecimalFormat.html
DecimalFormat (Java SE 21 & JDK 21)
January 20, 2026 - DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features designed to make it possible to parse and format numbers in any locale, including support for Western, Arabic, and Indic digits. It also supports different kinds of numbers, including ...
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › text › NumberFormat.Style.html
NumberFormat.Style (Java SE 21 & JDK 21)
October 20, 2025 - Style is an enum which represents the style for formatting a number within a given NumberFormat instance.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.desktop › javax › swing › text › NumberFormatter.html
NumberFormatter (Java SE 21 & JDK 21)
January 20, 2026 - The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see XMLEncoder. ... Creates a NumberFormatter with the default NumberFormat instance obtained from NumberFormat.getNumberInstance().
🌐
OpenJDK
cr.openjdk.org › ~jlaskey › java.base › java › text › NumberFormat.Style.html
NumberFormat.Style (Java SE 21 & JDK 21 [ad-hoc build])
Style is an enum which represents the style for formatting a number within a given NumberFormat instance.
Find elsewhere
🌐
Oracle
docs.oracle.com › en › java › javase › 22 › docs › api › java.base › java › text › NumberFormat.html
NumberFormat (Java SE 22 & JDK 22)
July 16, 2024 - For example in the English locale, with ParseIntegerOnly true, the string "1234." would be parsed as the integer value 1234 and parsing would stop at the "." character. Of course, the exact format accepted by the parse operation is locale dependent and determined by sub-classes of NumberFormat.
🌐
Java
download.java.net › java › early_access › jdk25 › docs › api › java.base › java › text › NumberFormat.html
NumberFormat (Java SE 25 & JDK 25 [build 21])
NumberFormat is the abstract base class for all number formats. This class provides the interface for formatting and parsing numbers in a localized manner.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › › › java.base › java › text › Format.html
Format (Java SE 21 & JDK 21)
January 20, 2026 - getInstance(Locale) for getting a useful format object appropriate for the specified locale In addition, some subclasses may also implement other getXxxxInstance methods for more specialized control. For example, the NumberFormat class provides getPercentInstance and getCurrencyInstance methods for getting specialized number formatters.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › text › DecimalFormatSymbols.html
DecimalFormatSymbols (Java SE 21 & JDK 21)
January 20, 2026 - This method provides access to DecimalFormatSymbols instances for locales supported by the Java runtime itself as well as for those supported by installed DecimalFormatSymbolsProvider implementations. If the specified locale contains the Locale.UNICODE_LOCALE_EXTENSION for the numbering system, the instance is initialized with the specified numbering system if the JRE implementation supports it. For example, NumberFormat.getNumberInstance(Locale.forLanguageTag("th-TH-u-nu-thai")) This may return a NumberFormat instance with the Thai numbering system, instead of the Latin numbering system.
🌐
GitHub
github.com › jdemetra › jdemetra-core › issues › 421
NumberFormat produces different code point after Java 13 build 21 · Issue #421 · jdemetra/jdemetra-core
March 14, 2019 - NumberFormat produces different ... body actions · According to this JDK issue, the grouping separator for French numbers has been changed from U+00A0 to U+202F in Java13+. The direct consequence is that a file containing ...
Author   charphi
🌐
Oracle
docs.oracle.com › en › java › javase › 20 › docs › api › java.base › java › text › NumberFormat.html
NumberFormat (Java SE 20 & JDK 20)
July 10, 2023 - For example in the English locale, with ParseIntegerOnly true, the string "1234." would be parsed as the integer value 1234 and parsing would stop at the "." character. Of course, the exact format accepted by the parse operation is locale dependent and determined by sub-classes of NumberFormat.
🌐
GeeksforGeeks
geeksforgeeks.org › java › numberformat-class-java
NumberFormat Class in Java - GeeksforGeeks
January 23, 2026 - NumberFormat.getInstance() returns a NumberFormat object for the system’s default locale. nf.format(1234567.89) converts the numeric value into a locale-specific formatted string.