< prev index next >

src/java.base/share/classes/java/text/DecimalFormat.java

Print this page

        

*** 170,233 **** * <code>DecimalFormatSymbols</code> object instead, and these characters lose * their special status. Two exceptions are the currency sign and quote, which * are not localized. * * <blockquote> ! * <table border=0 cellspacing=3 cellpadding=0 summary="Chart showing symbol, ! * location, localized, and meaning."> ! * <tr style="background-color: rgb(204, 204, 255);"> * <th style="text-align:left">Symbol * <th style="text-align:left">Location * <th style="text-align:left">Localized? * <th style="text-align:left">Meaning * <tr style="vertical-align:top"> * <td><code>0</code> * <td>Number * <td>Yes * <td>Digit ! * <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td><code>#</code> * <td>Number * <td>Yes * <td>Digit, zero shows as absent * <tr style="vertical-align:top"> * <td><code>.</code> * <td>Number * <td>Yes * <td>Decimal separator or monetary decimal separator ! * <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td><code>-</code> * <td>Number * <td>Yes * <td>Minus sign * <tr style="vertical-align:top"> * <td><code>,</code> * <td>Number * <td>Yes * <td>Grouping separator ! * <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td><code>E</code> * <td>Number * <td>Yes * <td>Separates mantissa and exponent in scientific notation. * <em>Need not be quoted in prefix or suffix.</em> * <tr style="vertical-align:top"> * <td><code>;</code> * <td>Subpattern boundary * <td>Yes * <td>Separates positive and negative subpatterns ! * <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td><code>%</code> * <td>Prefix or suffix * <td>Yes * <td>Multiply by 100 and show as percentage * <tr style="vertical-align:top"> * <td><code>\u2030</code> * <td>Prefix or suffix * <td>Yes * <td>Multiply by 1000 and show as per mille value ! * <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td><code>¤</code> (<code>\u00A4</code>) * <td>Prefix or suffix * <td>No * <td>Currency sign, replaced by currency symbol. If * doubled, replaced by international currency symbol. --- 170,236 ---- * <code>DecimalFormatSymbols</code> object instead, and these characters lose * their special status. Two exceptions are the currency sign and quote, which * are not localized. * * <blockquote> ! * <table class="striped"> ! * <caption style="display:none">Chart showing symbol, location, localized, and meaning.</caption> ! * <thead> ! * <tr> * <th style="text-align:left">Symbol * <th style="text-align:left">Location * <th style="text-align:left">Localized? * <th style="text-align:left">Meaning + * </thead> + * <tbody> * <tr style="vertical-align:top"> * <td><code>0</code> * <td>Number * <td>Yes * <td>Digit ! * <tr style="vertical-align: top"> * <td><code>#</code> * <td>Number * <td>Yes * <td>Digit, zero shows as absent * <tr style="vertical-align:top"> * <td><code>.</code> * <td>Number * <td>Yes * <td>Decimal separator or monetary decimal separator ! * <tr style="vertical-align: top"> * <td><code>-</code> * <td>Number * <td>Yes * <td>Minus sign * <tr style="vertical-align:top"> * <td><code>,</code> * <td>Number * <td>Yes * <td>Grouping separator ! * <tr style="vertical-align: top"> * <td><code>E</code> * <td>Number * <td>Yes * <td>Separates mantissa and exponent in scientific notation. * <em>Need not be quoted in prefix or suffix.</em> * <tr style="vertical-align:top"> * <td><code>;</code> * <td>Subpattern boundary * <td>Yes * <td>Separates positive and negative subpatterns ! * <tr style="vertical-align: top"> * <td><code>%</code> * <td>Prefix or suffix * <td>Yes * <td>Multiply by 100 and show as percentage * <tr style="vertical-align:top"> * <td><code>\u2030</code> * <td>Prefix or suffix * <td>Yes * <td>Multiply by 1000 and show as per mille value ! * <tr style="vertical-align: top"> * <td><code>¤</code> (<code>\u00A4</code>) * <td>Prefix or suffix * <td>No * <td>Currency sign, replaced by currency symbol. If * doubled, replaced by international currency symbol.
*** 239,248 **** --- 242,252 ---- * <td>No * <td>Used to quote special characters in a prefix or suffix, * for example, <code>"'#'#"</code> formats 123 to * <code>"#123"</code>. To create a single quote * itself, use two in a row: <code>"# o''clock"</code>. + * </tbody> * </table> * </blockquote> * * <h4>Scientific Notation</h4> *
< prev index next >