Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 92

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ICU 4.4: DecimalFormat Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>DecimalFormat Class Reference</h1><!-- doxytag: class="DecimalFormat" --><!-- doxytag: inherits="NumberFormat" -->
<p><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> is a concrete subclass of <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> that formats decimal numbers.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for DecimalFormat:</div>
<div class="dynsection">
 <div class="center">
  <img src="classDecimalFormat.gif" usemap="#DecimalFormat_map" alt=""/>
  <map id="DecimalFormat_map" name="DecimalFormat_map">
<area href="classNumberFormat.html" alt="NumberFormat" shape="rect" coords="0,168,96,192"/>
<area href="classFormat.html" alt="Format" shape="rect" coords="0,112,96,136"/>
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,96,80"/>
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,96,24"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">ERoundingMode</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7af146ca0a8b344f70cecb3803ae0f570b">kRoundCeiling</a>, 
<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7abfbc6479dc0e17828284c1c9defb1a6b">kRoundFloor</a>, 
<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a2533285a97586f0dbd50b800fd6122c8">kRoundDown</a>, 
<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a704fbaff22d357bf8e050996bd685301">kRoundUp</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a66aca6588fc0e4dbf998f1218c650a8e">kRoundHalfEven</a>, 
<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7aa6798557d8ca6479fcaf9f413f149471">kRoundHalfDown</a>, 
<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7ab7ea67fe0f5eb967ab3e21ec59aec926">kRoundHalfUp</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Rounding mode. </p>
 <a href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">EPadPosition</a> { <b>kPadBeforePrefix</b>, 
<b>kPadAfterPrefix</b>, 
<b>kPadBeforeSuffix</b>, 
<b>kPadAfterSuffix</b>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Pad position. </p>
 <a href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a8a421e9ca43a31cb308c8052cf82850e">DecimalFormat</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> using the default pattern and symbols for the default locale.  <a href="#a8a421e9ca43a31cb308c8052cf82850e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aaadc21eab2ef6252f25eada5440e3c65">DecimalFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and the symbols for the default locale.  <a href="#aaadc21eab2ef6252f25eada5440e3c65"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aeac00ab9c6c9bd9bf08d00db52ec5512">DecimalFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *symbolsToAdopt, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and symbols.  <a href="#aeac00ab9c6c9bd9bf08d00db52ec5512"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aaa63d71263fae24cacaf66f15a14ffbc">DecimalFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *symbolsToAdopt, <a class="el" href="classNumberFormat.html#ad0cc3a5ee54a7520ea911a93bc1d2316">NumberFormat::EStyles</a> style, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This API is for ICU use only.  <a href="#aaa63d71263fae24cacaf66f15a14ffbc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#af5ef6767e465d243dddea9d8d3bd9a57">DecimalFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *symbolsToAdopt, <a class="el" href="structUParseError.html">UParseError</a> &amp;parseError, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and symbols.  <a href="#af5ef6767e465d243dddea9d8d3bd9a57"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a6202bc1606eb3800758ec33fc05b6d2b">DecimalFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &amp;symbols, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and symbols.  <a href="#a6202bc1606eb3800758ec33fc05b6d2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ab9370805544903b8a5040468619a34ed">DecimalFormat</a> (const <a class="el" href="classDecimalFormat.html">DecimalFormat</a> &amp;source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#ab9370805544903b8a5040468619a34ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDecimalFormat.html">DecimalFormat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a80ae4009d0a89aaa339e38328c5f5f31">operator=</a> (const <a class="el" href="classDecimalFormat.html">DecimalFormat</a> &amp;rhs)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator.  <a href="#a80ae4009d0a89aaa339e38328c5f5f31"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a1c39af86d6186c5ffd8ae49d32a87cd6">~DecimalFormat</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#a1c39af86d6186c5ffd8ae49d32a87cd6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormat.html">Format</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ab708755522b88a31695ed54eac6f1bbe">clone</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clone this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object polymorphically.  <a href="#ab708755522b88a31695ed54eac6f1bbe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a3d3a2d71fcf817ddc1473e9e5c59756c">operator==</a> (const <a class="el" href="classFormat.html">Format</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> objects are semantically equal.  <a href="#a3d3a2d71fcf817ddc1473e9e5c59756c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a double or long number using base-10 representation.  <a href="#aed19f9279def60133b3122a2435ea568"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a15bb0a7e2c377a4bc0a3d786694f30d9">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a double or long number using base-10 representation.  <a href="#a15bb0a7e2c377a4bc0a3d786694f30d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aa2bab620a29369c545e85d544d73ad05">format</a> (int32_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a long number using base-10 representation.  <a href="#aa2bab620a29369c545e85d544d73ad05"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a78ad4a93bb4af259f0909b5f4c207312">format</a> (int32_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a long number using base-10 representation.  <a href="#a78ad4a93bb4af259f0909b5f4c207312"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a4239fefb073af94327ccdac88bb5bf3e">format</a> (int64_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number using base-10 representation.  <a href="#a4239fefb073af94327ccdac88bb5bf3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a12d61d1634942c8fd8dbc99e379eac64">format</a> (int64_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number using base-10 representation.  <a href="#a12d61d1634942c8fd8dbc99e379eac64"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a92b6cd5af73a8183eb3a3322db4a2c61">format</a> (const <a class="el" href="classStringPiece.html">StringPiece</a> &amp;number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number.  <a href="#a92b6cd5af73a8183eb3a3322db4a2c61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#af1eef78b146ce1ee5ee6c8c580e602ca">format</a> (const DigitList &amp;number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number.  <a href="#af1eef78b146ce1ee5ee6c8c580e602ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a1afb44274993754d2099fe78f24c95c5">format</a> (const DigitList &amp;number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number.  <a href="#a1afb44274993754d2099fe78f24c95c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a9cd8dc27d2e975c453b12e123225da17">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> using base-10 representation.  <a href="#a9cd8dc27d2e975c453b12e123225da17"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aaf9c44cbcc2b7f0279dcc6f121b8bf13">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method.  <a href="#aaf9c44cbcc2b7f0279dcc6f121b8bf13"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ac5b6d7339b4ea565dee15147cd29df09">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method.  <a href="#ac5b6d7339b4ea565dee15147cd29df09"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a353940a76151b71b954fcfb37a0f9611">format</a> (int32_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method.  <a href="#a353940a76151b71b954fcfb37a0f9611"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a7bd1ea414645fcce54268b47d38c84ae">format</a> (int64_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method.  <a href="#a7bd1ea414645fcce54268b47d38c84ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#afe6f4084b4a6ccff6977501d90011fa4">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;parsePosition) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the given string using this object's choices.  <a href="#afe6f4084b4a6ccff6977501d90011fa4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a9c0309ac314fe3ec8a7cc4b50b99940a">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the given string using this object's choices.  <a href="#a9c0309ac314fe3ec8a7cc4b50b99940a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aa83789398c1b9baa69aa31a5391eadf2">parseCurrency</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses text from the given string as a currency amount.  <a href="#aa83789398c1b9baa69aa31a5391eadf2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <br class="typebreak"/>
<a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a32cc0bfc2cffa8cb3978a67555fe7253">getDecimalFormatSymbols</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the decimal format symbols, which is generally not changed by the programmer or user.  <a href="#a32cc0bfc2cffa8cb3978a67555fe7253"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a13825fd336e4de55dfc5cd13616430b2">adoptDecimalFormatSymbols</a> (<a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *symbolsToAdopt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the decimal format symbols, which is generally not changed by the programmer or user.  <a href="#a13825fd336e4de55dfc5cd13616430b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a973c2dd6666737ba8d91384ea77ff26b">setDecimalFormatSymbols</a> (const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &amp;symbols)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the decimal format symbols, which is generally not changed by the programmer or user.  <a href="#a973c2dd6666737ba8d91384ea77ff26b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classCurrencyPluralInfo.html">CurrencyPluralInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a022de957369cbea0811ee07b3d934a22">getCurrencyPluralInfo</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the currency plural format information, which is generally not changed by the programmer or user.  <a href="#a022de957369cbea0811ee07b3d934a22"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a176a66f28389d420e6cb8f9d6ef33888">adoptCurrencyPluralInfo</a> (<a class="el" href="classCurrencyPluralInfo.html">CurrencyPluralInfo</a> *toAdopt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the currency plural format information, which is generally not changed by the programmer or user.  <a href="#a176a66f28389d420e6cb8f9d6ef33888"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a3ee9dab51dcd5eac0534964c26b90d72">setCurrencyPluralInfo</a> (const <a class="el" href="classCurrencyPluralInfo.html">CurrencyPluralInfo</a> &amp;info)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the currency plural format information, which is generally not changed by the programmer or user.  <a href="#a3ee9dab51dcd5eac0534964c26b90d72"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a542dc4e58b1d27bf9acc04caf6c392fe">getPositivePrefix</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the positive prefix.  <a href="#a542dc4e58b1d27bf9acc04caf6c392fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a955034e72cf166f9b9c933b2e7d0c0ce">setPositivePrefix</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the positive prefix.  <a href="#a955034e72cf166f9b9c933b2e7d0c0ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a85918d546a872ca3d33a4f1f15a9e5e0">getNegativePrefix</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the negative prefix.  <a href="#a85918d546a872ca3d33a4f1f15a9e5e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a923f9be542ebdbdf07f26dd849a6047b">setNegativePrefix</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the negative prefix.  <a href="#a923f9be542ebdbdf07f26dd849a6047b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#abc219af67d858829b4f258e42be2b362">getPositiveSuffix</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the positive suffix.  <a href="#abc219af67d858829b4f258e42be2b362"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#acc7ebd164e98f56a044861a77eb5b7b0">setPositiveSuffix</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the positive suffix.  <a href="#acc7ebd164e98f56a044861a77eb5b7b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a74c128baec0b40c6a02d495e9d1b66f6">getNegativeSuffix</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the negative suffix.  <a href="#a74c128baec0b40c6a02d495e9d1b66f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aee6c5f9d27a8df1d33bc65d9a5b546bf">setNegativeSuffix</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the negative suffix.  <a href="#aee6c5f9d27a8df1d33bc65d9a5b546bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aa7ed11a9a3bfecf78bf0323c09a89ce5">getMultiplier</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the multiplier for use in percent, permill, etc.  <a href="#aa7ed11a9a3bfecf78bf0323c09a89ce5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aeaa002ef2300082f24802df929162f83">setMultiplier</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the multiplier for use in percent, permill, etc.  <a href="#aeaa002ef2300082f24802df929162f83"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a2625aaab4e08c60f390f72ba3ef512a2">getRoundingIncrement</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the rounding increment.  <a href="#a2625aaab4e08c60f390f72ba3ef512a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a7d2a985abd8e4ac25c77e94f7f8ae2e7">setRoundingIncrement</a> (double newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the rounding increment.  <a href="#a7d2a985abd8e4ac25c77e94f7f8ae2e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">ERoundingMode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a9dd8911ea74be813c2446ee7a6657385">getRoundingMode</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the rounding mode.  <a href="#a9dd8911ea74be813c2446ee7a6657385"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a4c4239c9afd29b26ab405efda8d7f993">setRoundingMode</a> (<a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">ERoundingMode</a> roundingMode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the rounding mode.  <a href="#a4c4239c9afd29b26ab405efda8d7f993"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a96acb157e41ca30d73f7baef3e78e0a1">getFormatWidth</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the width to which the output of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> is padded.  <a href="#a96acb157e41ca30d73f7baef3e78e0a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a16b35a9d59d21f140c31e73dbb08758f">setFormatWidth</a> (int32_t width)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the width to which the output of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> is padded.  <a href="#a16b35a9d59d21f140c31e73dbb08758f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ae5eb36a42f0bc5b38585762fa819792b">getPadCharacterString</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the pad character used to pad to the format width.  <a href="#ae5eb36a42f0bc5b38585762fa819792b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a23c909183f4e0ed0c938fb67a1f5b5dd">setPadCharacter</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;padChar)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the character used to pad to the format width.  <a href="#a23c909183f4e0ed0c938fb67a1f5b5dd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">EPadPosition</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a44433620af9101170cdf90f5b56c9581">getPadPosition</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the position at which padding will take place.  <a href="#a44433620af9101170cdf90f5b56c9581"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a466c599088e944d2f9a73d2d251af4f3">setPadPosition</a> (<a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">EPadPosition</a> padPos)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the position at which padding will take place.  <a href="#a466c599088e944d2f9a73d2d251af4f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ae27960a24003cd84116cb94d05efd893">isScientificNotation</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return whether or not scientific notation is used.  <a href="#ae27960a24003cd84116cb94d05efd893"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a280ddb4755eadd569c668844eea83ec1">setScientificNotation</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> useScientific)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set whether or not scientific notation is used.  <a href="#a280ddb4755eadd569c668844eea83ec1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a7f2624eca4e37bfdebcb8b27f016abb0">getMinimumExponentDigits</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minimum exponent digits that will be shown.  <a href="#a7f2624eca4e37bfdebcb8b27f016abb0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aa9bbe051c7f9962bb8a4a91cc32bb001">setMinimumExponentDigits</a> (int8_t minExpDig)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the minimum exponent digits that will be shown.  <a href="#aa9bbe051c7f9962bb8a4a91cc32bb001"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a3f6ed363c1f0a3260153822f159ef136">isExponentSignAlwaysShown</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return whether the exponent sign is always shown.  <a href="#a3f6ed363c1f0a3260153822f159ef136"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a4c341614d4fcdceb83345a32ab125ec1">setExponentSignAlwaysShown</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> expSignAlways)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set whether the exponent sign is always shown.  <a href="#a4c341614d4fcdceb83345a32ab125ec1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a2609e24ab824305f1ed4c68523aa9820">getGroupingSize</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the grouping size.  <a href="#a2609e24ab824305f1ed4c68523aa9820"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#af1111f8ae6bcae827973d5114b5a1dd7">setGroupingSize</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the grouping size.  <a href="#af1111f8ae6bcae827973d5114b5a1dd7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aa215994a121009e3619e6e3884ced73b">getSecondaryGroupingSize</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the secondary grouping size.  <a href="#aa215994a121009e3619e6e3884ced73b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a489755a7c9b3a772d950c952c2e513d5">setSecondaryGroupingSize</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the secondary grouping size.  <a href="#a489755a7c9b3a772d950c952c2e513d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a856515c53689f8bbedf695b17b3e3769">isDecimalSeparatorAlwaysShown</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allows you to get the behavior of the decimal separator with integers.  <a href="#a856515c53689f8bbedf695b17b3e3769"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a1c767fd7397fd26ca7c0bae7fdcf2343">setDecimalSeparatorAlwaysShown</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allows you to set the behavior of the decimal separator with integers.  <a href="#a1c767fd7397fd26ca7c0bae7fdcf2343"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ab5d50567589c29105075cecfea1c98dc">toPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Synthesizes a pattern string that represents the current state of this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object.  <a href="#ab5d50567589c29105075cecfea1c98dc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a1eaa21381319486ce285ab680a14c918">toLocalizedPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Synthesizes a localized pattern string that represents the current state of this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object.  <a href="#a1eaa21381319486ce285ab680a14c918"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#af2d13a3de17cf4085cc82f74a915af6d">applyPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="structUParseError.html">UParseError</a> &amp;parseError, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Apply the given pattern to this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object.  <a href="#af2d13a3de17cf4085cc82f74a915af6d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a1cc6a469471eeae2356819552281001b">applyPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the pattern.  <a href="#a1cc6a469471eeae2356819552281001b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a3a9842cd391ea434e18889f5b04fb42d">applyLocalizedPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="structUParseError.html">UParseError</a> &amp;parseError, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Apply the given pattern to this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object.  <a href="#a3a9842cd391ea434e18889f5b04fb42d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ad20c4e92d192db4f70bc9631a67a0c1e">applyLocalizedPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Apply the given pattern to this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object.  <a href="#ad20c4e92d192db4f70bc9631a67a0c1e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aaf3692b04cf2fafbc536bcdaf9caea25">setMaximumIntegerDigits</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximum number of digits allowed in the integer portion of a number.  <a href="#aaf3692b04cf2fafbc536bcdaf9caea25"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#acda98ebc96abd54c9d796e90231f3bf9">setMinimumIntegerDigits</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the minimum number of digits allowed in the integer portion of a number.  <a href="#acda98ebc96abd54c9d796e90231f3bf9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a383f882e65849d2cf59550c875f61f1d">setMaximumFractionDigits</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximum number of digits allowed in the fraction portion of a number.  <a href="#a383f882e65849d2cf59550c875f61f1d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#acb6abe86ebcfd4bb0b91dec005da9d7b">setMinimumFractionDigits</a> (int32_t newValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the minimum number of digits allowed in the fraction portion of a number.  <a href="#acb6abe86ebcfd4bb0b91dec005da9d7b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a0f903265e1115115509d1d45da5c5d15">getMinimumSignificantDigits</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the minimum number of significant digits that will be displayed.  <a href="#a0f903265e1115115509d1d45da5c5d15"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a415f43f510424b6606d8529933e6a284">getMaximumSignificantDigits</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximum number of significant digits that will be displayed.  <a href="#a415f43f510424b6606d8529933e6a284"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#af970944ad7d9d249aeb488bd4872fe2a">setMinimumSignificantDigits</a> (int32_t min)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the minimum number of significant digits that will be displayed.  <a href="#af970944ad7d9d249aeb488bd4872fe2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a985457f807266318caaa13a20554906b">setMaximumSignificantDigits</a> (int32_t max)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximum number of significant digits that will be displayed.  <a href="#a985457f807266318caaa13a20554906b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a8dfe7ad867c1480858a6902314bc96b9">areSignificantDigitsUsed</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if significant digits are in use, or false if integer and fraction digit counts are in use.  <a href="#a8dfe7ad867c1480858a6902314bc96b9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aea4a7be245a5094ad7225a443ee39409">setSignificantDigitsUsed</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> useSignificantDigits)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets whether significant digits are in use, or integer and fraction digit counts are in use.  <a href="#aea4a7be245a5094ad7225a443ee39409"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a4c87fca5e0d14886bdaa4e0969f814e5">setCurrency</a> (const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *theCurrency, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the currency used to display currency amounts.  <a href="#a4c87fca5e0d14886bdaa4e0969f814e5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a2ac00a272f0b9f01c4004372c417d347">setCurrency</a> (const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *theCurrency)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the currency used to display currency amounts.  <a href="#a2ac00a272f0b9f01c4004372c417d347"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a29d58da07dee220c1661ec37397babb2">getDynamicClassID</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#a29d58da07dee220c1661ec37397babb2"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a2c44dda0c6621b3ff10b120fd760ea88">getStaticClassID</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#a2c44dda0c6621b3ff10b120fd760ea88"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#af41fc1a3bde85bec4649668300f60148">fgNumberPatterns</a> []</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The resource tags we use to retrieve decimal format data from locale resource bundles.  <a href="#af41fc1a3bde85bec4649668300f60148"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a9ff71ee7d761b1f802aa7e5d899ebe5c">getEffectiveCurrency</a> (<a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the currency in effect for this formatter.  <a href="#a9ff71ee7d761b1f802aa7e5d899ebe5c"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#a8d5140e73b831fedb039ccf3c303c156">kDoubleIntegerDigits</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">number of integer digits  <a href="#a8d5140e73b831fedb039ccf3c303c156"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#ab499b677e78e3320d6704b21f8a3ad23">kDoubleFractionDigits</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">number of fraction digits  <a href="#ab499b677e78e3320d6704b21f8a3ad23"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormat.html#aefc212fd0526b37ca733b1827d28f440">kMaxScientificIntegerDigits</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">When someone turns on scientific mode, we assume that more than this number of digits is due to flipping from some other mode that didn't restrict the maximum, and so we force 1 integer digit.  <a href="#aefc212fd0526b37ca733b1827d28f440"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> is a concrete subclass of <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> that formats decimal numbers. </p>
<p>It has a variety of features designed to make it possible to parse and format numbers in any locale, including support for Western, Arabic, or Indic digits. It also supports different flavors of numbers, including integers ("123"), fixed-point numbers ("123.4"), scientific notation ("1.23E4"), percentages ("12%"), and currency amounts ("$123", "USD123", "123 US dollars"). All of these flavors can be easily localized.</p>
<p>To obtain a <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> for a specific locale (including the default locale) call one of NumberFormat's factory methods such as <a class="el" href="classNumberFormat.html#a2483fa1e87f3600395ff0c8f364f7b6f" title="Returns the default number format for the current default locale.">createInstance()</a>. Do not call the <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> constructors directly, unless you know what you are doing, since the <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> factory methods may return subclasses other than <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>.</p>
<p><b>Example Usage</b></p>
<div class="fragment"><pre class="fragment">     <span class="comment">// Normally we would have a GUI with a menu for this</span>
     int32_t locCount;
     <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>* locales = <a class="code" href="classNumberFormat.html#a29addeb994249b22539ef1659d4017c7" title="Return a StringEnumeration over the locales available at the time of the call, including...">NumberFormat::getAvailableLocales</a>(locCount);

     <span class="keywordtype">double</span> myNumber = -1234.56;
     <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> success = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9" title="No error, no warning.">U_ZERO_ERROR</a>;
     <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a>* form;

     <span class="comment">// Print out a number with the localized number, currency and percent</span>
     <span class="comment">// format for each locale.</span>
     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> countryName;
     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> displayName;
     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> str;
     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> pattern;
     <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> fmtable;
     <span class="keywordflow">for</span> (int32_t j = 0; j &lt; 3; ++j) {
         cout &lt;&lt; endl &lt;&lt; <span class="stringliteral">&quot;FORMAT &quot;</span> &lt;&lt; j &lt;&lt; endl;
         <span class="keywordflow">for</span> (int32_t i = 0; i &lt; locCount; ++i) {
             <span class="keywordflow">if</span> (locales[i].getCountry(countryName).size() == 0) {
                 <span class="comment">// skip language-only</span>
                 <span class="keywordflow">continue</span>;
             }
             <span class="keywordflow">switch</span> (j) {
             <span class="keywordflow">case</span> 0:
                 form = <a class="code" href="classNumberFormat.html#a2483fa1e87f3600395ff0c8f364f7b6f" title="Returns the default number format for the current default locale.">NumberFormat::createInstance</a>(locales[i], success ); <span class="keywordflow">break</span>;
             <span class="keywordflow">case</span> 1:
                 form = <a class="code" href="classNumberFormat.html#a0c5d7b55f149281ed063e6bf631e1433" title="Returns a currency format for the current default locale.">NumberFormat::createCurrencyInstance</a>(locales[i], success ); <span class="keywordflow">break</span>;
             <span class="keywordflow">default</span>:
                 form = <a class="code" href="classNumberFormat.html#a033f486287d03fc07ccf422992a3e894" title="Returns a percentage format for the current default locale.">NumberFormat::createPercentInstance</a>(locales[i], success ); <span class="keywordflow">break</span>;
             }
             <span class="keywordflow">if</span> (form) {
                 str.<a class="code" href="classUnicodeString.html#aee0fec9568ee616e330627bf371eda8d" title="Remove all characters from the UnicodeString object.">remove</a>();
                 pattern = ((<a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>*)form)-&gt;toPattern(pattern);
                 cout &lt;&lt; locales[i].<a class="code" href="classLocale.html#abf9e7097a9cc828b346e61c47e5e23c5" title="Fills in &amp;quot;name&amp;quot; with the name of this locale in a format suitable for user...">getDisplayName</a>(displayName) &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; pattern;
                 cout &lt;&lt; <span class="stringliteral">&quot;  -&gt;  &quot;</span> &lt;&lt; form-&gt;<a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(myNumber,str) &lt;&lt; endl;
                 form-&gt;<a class="code" href="classNumberFormat.html#ab2c59c0b036a413b6735c6d50b88ae25" title="Return a long if possible (e.g.">parse</a>(form-&gt;<a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(myNumber,str), fmtable, success);
                 <span class="keyword">delete</span> form;
             }
         }
     }
</pre></div> <p>Another example use createInstance(style) </p>
<pre>
 <b>// Print out a number using the localized number, currency,
 // percent, scientific, integer, iso currency, and plural currency
 // format for each locale</b>
 Locale* locale = new <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>("en", "US");
 double myNumber = 1234.56;
 UErrorCode success = U_ZERO_ERROR;
 <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> str;
 <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> fmtable;
 for (int j=NumberFormatkNumberStyle;
      j&lt;=NumberFormatkPluralCurrencyStyle;
      ++j) {
     NumberFormat* format = NumberFormat::createInstance(locale, j, success);
     str.remove();
     cout &lt;&lt; "format result " &lt;&lt; form-&gt;format(myNumber, str) &lt;&lt; endl;
     format-&gt;parse(form-&gt;format(myNumber, str), fmtable, success);
 }</pre><p><b>Patterns</b></p>
<p>A <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> consists of a <em>pattern</em> and a set of <em>symbols</em>. The pattern may be set directly using <a class="el" href="classDecimalFormat.html#af2d13a3de17cf4085cc82f74a915af6d" title="Apply the given pattern to this Format object.">applyPattern()</a>, or indirectly using other API methods which manipulate aspects of the pattern, such as the minimum number of integer digits. The symbols are stored in a <a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> object. When using the <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> factory methods, the pattern and symbols are read from ICU's locale data.</p>
<p><b>Special Pattern Characters</b></p>
<p>Many characters in a pattern are taken literally; they are matched during parsing and output unchanged during formatting. Special characters, on the other hand, stand for other characters, strings, or classes of characters. For example, the '#' character is replaced by a localized digit. Often the replacement character is the same as the pattern character; in the U.S. locale, the ',' grouping character is replaced by ','. However, the replacement is still happening, and if the symbols are modified, the grouping character changes. Some special characters affect the behavior of the formatter by their presence; for example, if the percent character is seen, then the value is multiplied by 100 before being displayed.</p>
<p>To insert a special character in a pattern as a literal, that is, without any special meaning, the character must be quoted. There are some exceptions to this which are noted below.</p>
<p>The characters listed here are used in non-localized patterns. Localized patterns use the corresponding characters taken from this formatter's <a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> object instead, and these characters lose their special status. Two exceptions are the currency sign and quote, which are not localized.</p>
<table border="0" cellspacing="3" cellpadding="0">
<tr bgcolor="#ccccff">
<td align="left"><p><b>Symbol</b> </p>
</td><td align="left"><p><b>Location</b> </p>
</td><td align="left"><p><b>Localized?</b> </p>
</td><td align="left"><p><b>Meaning</b> </p>
</td></tr>
<tr valign="top">
<td><p><code>0</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>Digit </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>1-9</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>'1' through '9' indicate rounding. </p>
</td></tr>
<tr valign="top">
<td><p><code> &#x40;</code> </p>
</td><td><p>Number </p>
</td><td><p>No </p>
</td><td><p>Significant digit </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>#</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>Digit, zero shows as absent </p>
</td></tr>
<tr valign="top">
<td><p><code>.</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>Decimal separator or monetary decimal separator </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>-</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>Minus sign </p>
</td></tr>
<tr valign="top">
<td><p><code>,</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>Grouping separator </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>E</code> </p>
</td><td><p>Number </p>
</td><td><p>Yes </p>
</td><td><p>Separates mantissa and exponent in scientific notation. <em>Need not be quoted in prefix or suffix.</em> </p>
</td></tr>
<tr valign="top">
<td><p><code>+</code> </p>
</td><td><p>Exponent </p>
</td><td><p>Yes </p>
</td><td><p>Prefix positive exponents with localized plus sign. <em>Need not be quoted in prefix or suffix.</em> </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>;</code> </p>
</td><td><p>Subpattern boundary </p>
</td><td><p>Yes </p>
</td><td><p>Separates positive and negative subpatterns </p>
</td></tr>
<tr valign="top">
<td><p><code>%</code> </p>
</td><td><p>Prefix or suffix </p>
</td><td><p>Yes </p>
</td><td><p>Multiply by 100 and show as percentage </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>\u2030</code> </p>
</td><td><p>Prefix or suffix </p>
</td><td><p>Yes </p>
</td><td><p>Multiply by 1000 and show as per mille </p>
</td></tr>
<tr valign="top">
<td><p><code> &curren;</code> (<code>\u00A4</code>) </p>
</td><td><p>Prefix or suffix </p>
</td><td><p>No </p>
</td><td><p>Currency sign, replaced by currency symbol. If doubled, replaced by international currency symbol. If tripled, replaced by currency plural names, for example, "US dollar" or "US dollars" for America. If present in a pattern, the monetary decimal separator is used instead of the decimal separator. </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>'</code> </p>
</td><td><p>Prefix or suffix </p>
</td><td><p>No </p>
</td><td><p>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>. </p>
</td></tr>
<tr valign="top">
<td><p><code>*</code> </p>
</td><td><p>Prefix or suffix boundary </p>
</td><td><p>Yes </p>
</td><td><p>Pad escape, precedes pad character </p>
</td></tr>
</table>
<p>A <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> pattern contains a postive and negative subpattern, for example, "#,##0.00;(#,##0.00)". Each subpattern has a prefix, a numeric part, and a suffix. If there is no explicit negative subpattern, the negative subpattern is the localized minus sign prefixed to the positive subpattern. That is, "0.00" alone is equivalent to "0.00;-0.00". If there is an explicit negative subpattern, it serves only to specify the negative prefix and suffix; the number of digits, minimal digits, and other characteristics are ignored in the negative subpattern. That means that "#,##0.0#;(#)" has precisely the same result as "#,##0.0#;(#,##0.0#)".</p>
<p>The prefixes, suffixes, and various symbols used for infinity, digits, thousands separators, decimal separators, etc. may be set to arbitrary values, and they will appear properly during formatting. However, care must be taken that the symbols and strings do not conflict, or parsing will be unreliable. For example, either the positive and negative prefixes or the suffixes must be distinct for <a class="el" href="classDecimalFormat.html#afe6f4084b4a6ccff6977501d90011fa4" title="Parse the given string using this object&#39;s choices.">parse()</a> to be able to distinguish positive from negative values. Another example is that the decimal separator and thousands separator should be distinct characters, or parsing will be impossible.</p>
<p>The <em>grouping separator</em> is a character that separates clusters of integer digits to make large numbers more legible. It commonly used for thousands, but in some locales it separates ten-thousands. The <em>grouping size</em> is the number of digits between the grouping separators, such as 3 for "100,000,000" or 4 for "1 0000 0000". There are actually two different grouping sizes: One used for the least significant integer digits, the <em>primary grouping size</em>, and one used for all others, the <em>secondary grouping size</em>. In most locales these are the same, but sometimes they are different. For example, if the primary grouping interval is 3, and the secondary is 2, then this corresponds to the pattern "#,##,##0", and the number 123456789 is formatted as "12,34,56,789". If a pattern contains multiple grouping separators, the interval between the last one and the end of the integer defines the primary grouping size, and the interval between the last two defines the secondary grouping size. All others are ignored, so "#,##,###,####" == "###,###,####" == "##,#,###,####".</p>
<p>Illegal patterns, such as "#.#.#" or "#.###,###", will cause <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> to set a failing UErrorCode.</p>
<p><b>Pattern BNF</b></p>
<pre>
 pattern    := subpattern (';' subpattern)?
 subpattern := prefix? number exponent? suffix?
 number     := (integer ('.' fraction)?) | sigDigits
 prefix     := '\u0000'..'\uFFFD' - specialCharacters
 suffix     := '\u0000'..'\uFFFD' - specialCharacters
 integer    := '#'* '0'* '0'
 fraction   := '0'* '#'*
 sigDigits  := '#'* '@' '@'* '#'*
 exponent   := 'E' '+'? '0'* '0'
 padSpec    := '*' padChar
 padChar    := '\u0000'..'\uFFFD' - quote
 &nbsp;
 Notation:
   X*       0 or more instances of X
   X?       0 or 1 instances of X
   X|Y      either X or Y
   C..D     any character from C up to D, inclusive
   S-T      characters in S, except those in T
 </pre><p> The first subpattern is for positive numbers. The second (optional) subpattern is for negative numbers.</p>
<p>Not indicated in the BNF syntax above:</p>
<ul>
<li>
<p class="startli">The grouping separator ',' can occur inside the integer and sigDigits elements, between any two pattern characters of that element, as long as the integer or sigDigits element is not followed by the exponent element.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Two grouping intervals are recognized: That between the decimal point and the first grouping symbol, and that between the first and second grouping symbols. These intervals are identical in most locales, but in some locales they differ. For example, the pattern "#,##,###" formats the number 123456789 as "12,34,56,789".</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">The pad specifier <code>padSpec</code> may appear before the prefix, after the prefix, before the suffix, after the suffix, or not at all.</p>
<p class="endli"></p>
</li>
<li>
In place of '0', the digits '1' through '9' may be used to indicate a rounding increment. </li>
</ul>
<p><b>Parsing</b></p>
<p><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> parses all Unicode characters that represent decimal digits, as defined by <a class="el" href="uchar_8h.html#afd684aeceb3d5c45028fd3e89d91a193" title="Returns the decimal digit value of a decimal digit character.">u_charDigitValue()</a>. In addition, <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> also recognizes as digits the ten consecutive characters starting with the localized zero digit defined in the <a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> object. During formatting, the DecimalFormatSymbols-based digits are output.</p>
<p>During parsing, grouping separators are ignored.</p>
<p>For currency parsing, the formatter is able to parse every currency style formats no matter which style the formatter is constructed with. For example, a formatter instance gotten from NumberFormat.getInstance(ULocale, NumberFormat.CURRENCYSTYLE) can parse formats such as "USD1.00" and "3.00 US dollars".</p>
<p>If parse(UnicodeString&amp;,Formattable&amp;,ParsePosition&amp;) fails to parse a string, it leaves the parse position unchanged. The convenience method parse(UnicodeString&amp;,Formattable&amp;,UErrorCode&amp;) indicates parse failure by setting a failing UErrorCode.</p>
<p><b>Formatting</b></p>
<p>Formatting is guided by several parameters, all of which can be specified either using a pattern or using the API. The following description applies to formats that do not use <a href="#sci">scientific notation</a> or <a href="#sigdig">significant digits</a>.</p>
<ul>
<li>
<p class="startli">If the number of actual integer digits exceeds the <em>maximum integer digits</em>, then only the least significant digits are shown. For example, 1997 is formatted as "97" if the maximum integer digits is set to 2.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If the number of actual integer digits is less than the <em>minimum integer digits</em>, then leading zeros are added. For example, 1997 is formatted as "01997" if the minimum integer digits is set to 5.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If the number of actual fraction digits exceeds the <em>maximum fraction digits</em>, then half-even rounding it performed to the maximum fraction digits. For example, 0.125 is formatted as "0.12" if the maximum fraction digits is 2. This behavior can be changed by specifying a rounding increment and a rounding mode.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If the number of actual fraction digits is less than the <em>minimum fraction digits</em>, then trailing zeros are added. For example, 0.125 is formatted as "0.1250" if the mimimum fraction digits is set to 4.</p>
<p class="endli"></p>
</li>
<li>
Trailing fractional zeros are not displayed if they occur <em>j</em> positions after the decimal, where <em>j</em> is less than the maximum fraction digits. For example, 0.10004 is formatted as "0.1" if the maximum fraction digits is four or less. </li>
</ul>
<p><b>Special Values</b></p>
<p><code>NaN</code> is represented as a single character, typically <code>\uFFFD</code>. This character is determined by the <a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> object. This is the only value for which the prefixes and suffixes are not used.</p>
<p>Infinity is represented as a single character, typically <code>\u221E</code>, with the positive or negative prefixes and suffixes applied. The infinity character is determined by the <a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> object.</p>
<p><a class="anchor" id="sci"></a><b>Scientific Notation</b></p>
<p>Numbers in scientific notation are expressed as the product of a mantissa and a power of ten, for example, 1234 can be expressed as 1.234 x 10<sup>3</sup>. The mantissa is typically in the half-open interval [1.0, 10.0) or sometimes [0.0, 1.0), but it need not be. <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> supports arbitrary mantissas. <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> can be instructed to use scientific notation through the API or through the pattern. In a pattern, the exponent character immediately followed by one or more digit characters indicates scientific notation. Example: "0.###E0" formats the number 1234 as "1.234E3".</p>
<ul>
<li>
<p class="startli">The number of digit characters after the exponent character gives the minimum exponent digit count. There is no maximum. Negative exponents are formatted using the localized minus sign, <em>not</em> the prefix and suffix from the pattern. This allows patterns such as "0.###E0 m/s". To prefix positive exponents with a localized plus sign, specify '+' between the exponent and the digits: "0.###E+0" will produce formats "1E+1", "1E+0", "1E-1", etc. (In localized patterns, use the localized plus sign rather than '+'.)</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">The minimum number of integer digits is achieved by adjusting the exponent. Example: 0.00123 formatted with "00.###E0" yields "12.3E-4". This only happens if there is no maximum number of integer digits. If there is a maximum, then the minimum number of integer digits is fixed at one.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">The maximum number of integer digits, if present, specifies the exponent grouping. The most common use of this is to generate <em>engineering notation</em>, in which the exponent is a multiple of three, e.g., "##0.###E0". The number 12345 is formatted using "##0.####E0" as "12.345E3".</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">When using scientific notation, the formatter controls the digit counts using significant digits logic. The maximum number of significant digits limits the total number of integer and fraction digits that will be shown in the mantissa; it does not affect parsing. For example, 12345 formatted with "##0.##E0" is "12.3E3". See the section on significant digits for more details.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">The number of significant digits shown is determined as follows: If <a class="el" href="classDecimalFormat.html#a8dfe7ad867c1480858a6902314bc96b9" title="Returns true if significant digits are in use, or false if integer and fraction digit...">areSignificantDigitsUsed()</a> returns false, then the minimum number of significant digits shown is one, and the maximum number of significant digits shown is the sum of the <em>minimum integer</em> and <em>maximum fraction</em> digits, and is unaffected by the maximum integer digits. If this sum is zero, then all significant digits are shown. If <a class="el" href="classDecimalFormat.html#a8dfe7ad867c1480858a6902314bc96b9" title="Returns true if significant digits are in use, or false if integer and fraction digit...">areSignificantDigitsUsed()</a> returns true, then the significant digit counts are specified by <a class="el" href="classDecimalFormat.html#a0f903265e1115115509d1d45da5c5d15" title="Returns the minimum number of significant digits that will be displayed.">getMinimumSignificantDigits()</a> and <a class="el" href="classDecimalFormat.html#a415f43f510424b6606d8529933e6a284" title="Returns the maximum number of significant digits that will be displayed.">getMaximumSignificantDigits()</a>. In this case, the number of integer digits is fixed at one, and there is no exponent grouping.</p>
<p class="endli"></p>
</li>
<li>
Exponential patterns may not contain grouping separators. </li>
</ul>
<p><a class="anchor" id="sigdig"></a><b>Significant Digits</b></p>
<p><code><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a></code> has two ways of controlling how many digits are shows: (a) significant digits counts, or (b) integer and fraction digit counts. Integer and fraction digit counts are described above. When a formatter is using significant digits counts, the number of integer and fraction digits is not specified directly, and the formatter settings for these counts are ignored. Instead, the formatter uses however many integer and fraction digits are required to display the specified number of significant digits. Examples:</p>
<table border="0" cellspacing="3" cellpadding="0">
<tr bgcolor="#ccccff">
<td align="left"><p>Pattern </p>
</td><td align="left"><p>Minimum significant digits </p>
</td><td align="left"><p>Maximum significant digits </p>
</td><td align="left"><p>Number </p>
</td><td align="left"><p>Output of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> </p>
</td></tr>
<tr valign="top">
<td><p><code>@@@</code> </p>
</td><td><p>3 </p>
</td><td><p>3 </p>
</td><td><p>12345 </p>
</td><td><p><code>12300</code> </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>@@@</code> </p>
</td><td><p>3 </p>
</td><td><p>3 </p>
</td><td><p>0.12345 </p>
</td><td><p><code>0.123</code> </p>
</td></tr>
<tr valign="top">
<td><p><code>@@##</code> </p>
</td><td><p>2 </p>
</td><td><p>4 </p>
</td><td><p>3.14159 </p>
</td><td><p><code>3.142</code> </p>
</td></tr>
<tr valign="top" bgcolor="#eeeeff">
<td><p><code>@@##</code> </p>
</td><td><p>2 </p>
</td><td><p>4 </p>
</td><td><p>1.23004 </p>
</td><td><p><code>1.23</code> </p>
</td></tr>
</table>
<ul>
<li>
<p class="startli">Significant digit counts may be expressed using patterns that specify a minimum and maximum number of significant digits. These are indicated by the <code>'@'</code> and <code>'#'</code> characters. The minimum number of significant digits is the number of <code>'@'</code> characters. The maximum number of significant digits is the number of <code>'@'</code> characters plus the number of <code>'#'</code> characters following on the right. For example, the pattern <code>"@@@"</code> indicates exactly 3 significant digits. The pattern <code>"@##"</code> indicates from 1 to 3 significant digits. Trailing zero digits to the right of the decimal separator are suppressed after the minimum number of significant digits have been shown. For example, the pattern <code>"@##"</code> formats the number 0.1203 as <code>"0.12"</code>.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If a pattern uses significant digits, it may not contain a decimal separator, nor the <code>'0'</code> pattern character. Patterns such as <code>"@00"</code> or <code>"@.###"</code> are disallowed.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Any number of <code>'#'</code> characters may be prepended to the left of the leftmost <code>'@'</code> character. These have no effect on the minimum and maximum significant digits counts, but may be used to position grouping separators. For example, <code>"#,#@#"</code> indicates a minimum of one significant digits, a maximum of two significant digits, and a grouping size of three.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">In order to enable significant digits formatting, use a pattern containing the <code>'@'</code> pattern character. Alternatively, call setSignificantDigitsUsed(TRUE).</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">In order to disable significant digits formatting, use a pattern that does not contain the <code>'@'</code> pattern character. Alternatively, call setSignificantDigitsUsed(FALSE).</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">The number of significant digits has no effect on parsing.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Significant digits may be used together with exponential notation. Such patterns are equivalent to a normal exponential pattern with a minimum and maximum integer digit count of one, a minimum fraction digit count of <code><a class="el" href="classDecimalFormat.html#a0f903265e1115115509d1d45da5c5d15" title="Returns the minimum number of significant digits that will be displayed.">getMinimumSignificantDigits()</a> - 1</code>, and a maximum fraction digit count of <code><a class="el" href="classDecimalFormat.html#a415f43f510424b6606d8529933e6a284" title="Returns the maximum number of significant digits that will be displayed.">getMaximumSignificantDigits()</a> - 1</code>. For example, the pattern <code>"@@###E0"</code> is equivalent to <code>"0.0###E0"</code>.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">If signficant digits are in use, then the integer and fraction digit counts, as set via the API, are ignored. If significant digits are not in use, then the signficant digit counts, as set via the API, are ignored.</p>
<p class="endli"></p>
</li>
</ul>
<p><b>Padding</b></p>
<p><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> supports padding the result of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> to a specific width. Padding may be specified either through the API or through the pattern syntax. In a pattern the pad escape character, followed by a single pad character, causes padding to be parsed and formatted. The pad escape character is '*' in unlocalized patterns, and can be localized using <a class="el" href="classDecimalFormatSymbols.html#a4c2a2e4ee6b5ab0e527565d8a252a9b3" title="Set one of the format symbols by its enum constant.">DecimalFormatSymbols::setSymbol()</a> with a <a class="el" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a7e2aaf6cc78c1f63bda0bd7295bc97c3" title="Escape padding character.">DecimalFormatSymbols::kPadEscapeSymbol</a> selector. For example, <code>"$*x#,##0.00"</code> formats 123 to <code>"$xx123.00"</code>, and 1234 to <code>"$1,234.00"</code>.</p>
<ul>
<li>
<p class="startli">When padding is in effect, the width of the positive subpattern, including prefix and suffix, determines the format width. For example, in the pattern <code>"* #0 o''clock"</code>, the format width is 10.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">The width is counted in 16-bit code units (UChars).</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Some parameters which usually do not matter have meaning when padding is used, because the pattern width is significant with padding. In the pattern "* ##,##,#,##0.##", the format width is 14. The initial characters "##,##," do not affect the grouping size or maximum integer digits, but they do affect the format width.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Padding may be inserted at one of four locations: before the prefix, after the prefix, before the suffix, or after the suffix. If padding is specified in any other location, <a class="el" href="classDecimalFormat.html#af2d13a3de17cf4085cc82f74a915af6d" title="Apply the given pattern to this Format object.">applyPattern()</a> sets a failing UErrorCode. If there is no prefix, before the prefix and after the prefix are equivalent, likewise for the suffix.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">When specified in a pattern, the 32-bit code point immediately following the pad escape is the pad character. This may be any character, including a special pattern character. That is, the pad escape <em>escapes</em> the following character. If there is no character after the pad escape, then the pattern is illegal.</p>
<p class="endli"></p>
</li>
</ul>
<p><b>Rounding</b></p>
<p><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> supports rounding to a specific increment. For example, 1230 rounded to the nearest 50 is 1250. 1.234 rounded to the nearest 0.65 is 1.3. The rounding increment may be specified through the API or in a pattern. To specify a rounding increment in a pattern, include the increment in the pattern itself. "#,#50" specifies a rounding increment of 50. "#,##0.05" specifies a rounding increment of 0.05.</p>
<ul>
<li>
<p class="startli">Rounding only affects the string produced by formatting. It does not affect parsing or change any numerical values.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">A <em>rounding mode</em> determines how values are rounded; see <a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7" title="Rounding mode.">DecimalFormat::ERoundingMode</a>. Rounding increments specified in patterns use the default mode, <a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a66aca6588fc0e4dbf998f1218c650a8e" title="Round towards the nearest integer, or towards the nearest even integer if equidistant...">DecimalFormat::kRoundHalfEven</a>.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Some locales use rounding in their currency formats to reflect the smallest currency denomination.</p>
<p class="endli"></p>
</li>
<li>
In a pattern, digits '1' through '9' specify rounding, but otherwise behave identically to digit '0'. </li>
</ul>
<p><b>Synchronization</b></p>
<p><a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> objects are not synchronized. Multiple threads should not access one formatter concurrently.</p>
<p><b>Subclassing</b></p>
<p><em>User subclasses are not supported.</em> While clients may write subclasses, such code will not necessarily work and will not be guaranteed to work stably from release to release. </p>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l00639">639</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="ad9cabc444ffb51c72c4c11be6d004e21"></a><!-- doxytag: member="DecimalFormat::EPadPosition" ref="ad9cabc444ffb51c72c4c11be6d004e21" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">DecimalFormat::EPadPosition</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pad position. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002425">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l00663">663</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a00f3e49ce35985df764feb658371b7e7"></a><!-- doxytag: member="DecimalFormat::ERoundingMode" ref="a00f3e49ce35985df764feb658371b7e7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">DecimalFormat::ERoundingMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rounding mode. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002424">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7af146ca0a8b344f70cecb3803ae0f570b"></a><!-- doxytag: member="kRoundCeiling" ref="a00f3e49ce35985df764feb658371b7e7af146ca0a8b344f70cecb3803ae0f570b" args="" -->kRoundCeiling</em>&nbsp;</td><td>
<p>Round towards positive infinity. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7abfbc6479dc0e17828284c1c9defb1a6b"></a><!-- doxytag: member="kRoundFloor" ref="a00f3e49ce35985df764feb658371b7e7abfbc6479dc0e17828284c1c9defb1a6b" args="" -->kRoundFloor</em>&nbsp;</td><td>
<p>Round towards negative infinity. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7a2533285a97586f0dbd50b800fd6122c8"></a><!-- doxytag: member="kRoundDown" ref="a00f3e49ce35985df764feb658371b7e7a2533285a97586f0dbd50b800fd6122c8" args="" -->kRoundDown</em>&nbsp;</td><td>
<p>Round towards zero. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7a704fbaff22d357bf8e050996bd685301"></a><!-- doxytag: member="kRoundUp" ref="a00f3e49ce35985df764feb658371b7e7a704fbaff22d357bf8e050996bd685301" args="" -->kRoundUp</em>&nbsp;</td><td>
<p>Round away from zero. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7a66aca6588fc0e4dbf998f1218c650a8e"></a><!-- doxytag: member="kRoundHalfEven" ref="a00f3e49ce35985df764feb658371b7e7a66aca6588fc0e4dbf998f1218c650a8e" args="" -->kRoundHalfEven</em>&nbsp;</td><td>
<p>Round towards the nearest integer, or towards the nearest even integer if equidistant. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7aa6798557d8ca6479fcaf9f413f149471"></a><!-- doxytag: member="kRoundHalfDown" ref="a00f3e49ce35985df764feb658371b7e7aa6798557d8ca6479fcaf9f413f149471" args="" -->kRoundHalfDown</em>&nbsp;</td><td>
<p>Round towards the nearest integer, or towards zero if equidistant. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a00f3e49ce35985df764feb658371b7e7ab7ea67fe0f5eb967ab3e21ec59aec926"></a><!-- doxytag: member="kRoundHalfUp" ref="a00f3e49ce35985df764feb658371b7e7ab7ea67fe0f5eb967ab3e21ec59aec926" args="" -->kRoundHalfUp</em>&nbsp;</td><td>
<p>Round towards the nearest integer, or away from zero if equidistant. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l00645">645</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8a421e9ca43a31cb308c8052cf82850e"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="a8a421e9ca43a31cb308c8052cf82850e" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> using the default pattern and symbols for the default locale. </p>
<p>This is a convenient way to obtain a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> when internationalization is not the main concern. </p>
<p>To obtain standard formats for a given locale, use the factory methods on <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> such as createInstance. These factories will return the most appropriate sub-class of <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> for a given locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. If the pattern is invalid this will be set to a failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002426">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aaadc21eab2ef6252f25eada5440e3c65"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="aaadc21eab2ef6252f25eada5440e3c65" args="(const UnicodeString &amp;pattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and the symbols for the default locale. </p>
<p>This is a convenient way to obtain a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> when internationalization is not the main concern. </p>
<p>To obtain standard formats for a given locale, use the factory methods on <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> such as createInstance. These factories will return the most appropriate sub-class of <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> for a given locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>A non-localized pattern string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. If the pattern is invalid this will be set to a failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002427">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aeac00ab9c6c9bd9bf08d00db52ec5512"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="aeac00ab9c6c9bd9bf08d00db52ec5512" args="(const UnicodeString &amp;pattern, DecimalFormatSymbols *symbolsToAdopt, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *&nbsp;</td>
          <td class="paramname"> <em>symbolsToAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and symbols. </p>
<p>Use this constructor when you need to completely customize the behavior of the format. </p>
<p>To obtain standard formats for a given locale, use the factory methods on <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> such as createInstance or createCurrencyInstance. If you need only minor adjustments to a standard format, you can modify the format returned by a <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> factory method.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>a non-localized pattern string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>symbolsToAdopt</em>&nbsp;</td><td>the set of symbols to be used. The caller should not delete this object after making this call. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. If the pattern is invalid this will be set to a failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002428">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aaa63d71263fae24cacaf66f15a14ffbc"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="aaa63d71263fae24cacaf66f15a14ffbc" args="(const UnicodeString &amp;pattern, DecimalFormatSymbols *symbolsToAdopt, NumberFormat::EStyles style, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *&nbsp;</td>
          <td class="paramname"> <em>symbolsToAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classNumberFormat.html#ad0cc3a5ee54a7520ea911a93bc1d2316">NumberFormat::EStyles</a>&nbsp;</td>
          <td class="paramname"> <em>style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This API is for ICU use only. </p>
<p>Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern, symbols, and style.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>a non-localized pattern string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>symbolsToAdopt</em>&nbsp;</td><td>the set of symbols to be used. The caller should not delete this object after making this call. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>style</em>&nbsp;</td><td>style of decimal format, kNumberStyle etc. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. If the pattern is invalid this will be set to a failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000259">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="af5ef6767e465d243dddea9d8d3bd9a57"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="af5ef6767e465d243dddea9d8d3bd9a57" args="(const UnicodeString &amp;pattern, DecimalFormatSymbols *symbolsToAdopt, UParseError &amp;parseError, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *&nbsp;</td>
          <td class="paramname"> <em>symbolsToAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parseError</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and symbols. </p>
<p>Use this constructor when you need to completely customize the behavior of the format. </p>
<p>To obtain standard formats for a given locale, use the factory methods on <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> such as createInstance or createCurrencyInstance. If you need only minor adjustments to a standard format, you can modify the format returned by a <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> factory method.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>a non-localized pattern string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>symbolsToAdopt</em>&nbsp;</td><td>the set of symbols to be used. The caller should not delete this object after making this call. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parseError</em>&nbsp;</td><td>Output param to receive errors occured during parsing </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. If the pattern is invalid this will be set to a failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002429">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6202bc1606eb3800758ec33fc05b6d2b"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="a6202bc1606eb3800758ec33fc05b6d2b" args="(const UnicodeString &amp;pattern, const DecimalFormatSymbols &amp;symbols, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>symbols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> from the given pattern and symbols. </p>
<p>Use this constructor when you need to completely customize the behavior of the format. </p>
<p>To obtain standard formats for a given locale, use the factory methods on <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> such as createInstance or createCurrencyInstance. If you need only minor adjustments to a standard format, you can modify the format returned by a <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> factory method.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>a non-localized pattern string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>symbols</em>&nbsp;</td><td>the set of symbols to be used </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code. If the pattern is invalid this will be set to a failure code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002430">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ab9370805544903b8a5040468619a34ed"></a><!-- doxytag: member="DecimalFormat::DecimalFormat" ref="ab9370805544903b8a5040468619a34ed" args="(const DecimalFormat &amp;source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat::DecimalFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDecimalFormat.html">DecimalFormat</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>source</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td>the <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> object to be copied from. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002431">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1c39af86d6186c5ffd8ae49d32a87cd6"></a><!-- doxytag: member="DecimalFormat::~DecimalFormat" ref="a1c39af86d6186c5ffd8ae49d32a87cd6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual DecimalFormat::~DecimalFormat </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002433">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a176a66f28389d420e6cb8f9d6ef33888"></a><!-- doxytag: member="DecimalFormat::adoptCurrencyPluralInfo" ref="a176a66f28389d420e6cb8f9d6ef33888" args="(CurrencyPluralInfo *toAdopt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::adoptCurrencyPluralInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCurrencyPluralInfo.html">CurrencyPluralInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>toAdopt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the currency plural format information, which is generally not changed by the programmer or user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>toAdopt</em>&nbsp;</td><td><a class="el" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a> to be adopted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002450">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a13825fd336e4de55dfc5cd13616430b2"></a><!-- doxytag: member="DecimalFormat::adoptDecimalFormatSymbols" ref="a13825fd336e4de55dfc5cd13616430b2" args="(DecimalFormatSymbols *symbolsToAdopt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::adoptDecimalFormatSymbols </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> *&nbsp;</td>
          <td class="paramname"> <em>symbolsToAdopt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the decimal format symbols, which is generally not changed by the programmer or user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>symbolsToAdopt</em>&nbsp;</td><td><a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> to be adopted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002447">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ad20c4e92d192db4f70bc9631a67a0c1e"></a><!-- doxytag: member="DecimalFormat::applyLocalizedPattern" ref="ad20c4e92d192db4f70bc9631a67a0c1e" args="(const UnicodeString &amp;pattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::applyLocalizedPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Apply the given pattern to this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>The localized pattern to be applied. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002489">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a3a9842cd391ea434e18889f5b04fb42d"></a><!-- doxytag: member="DecimalFormat::applyLocalizedPattern" ref="a3a9842cd391ea434e18889f5b04fb42d" args="(const UnicodeString &amp;pattern, UParseError &amp;parseError, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::applyLocalizedPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parseError</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Apply the given pattern to this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. </p>
<p>The pattern is assumed to be in a localized notation. A pattern is a short-hand specification for the various formatting properties. These properties can also be changed individually through the various setter methods. </p>
<p>There is no limit to integer digits are set by this routine, since that is the typical end-user desire; use setMaximumInteger if you want to set a real value. For negative numbers, use a second pattern, separated by a semicolon </p>
<pre>
 .      Example "#,#00.0#" -&gt; 1,234.56
 </pre><p> This means a minimum of 2 integer digits, 1 fraction digit, and a maximum of 2 fraction digits.</p>
<p>Example: "#,#00.0#;(#,#00.0#)" for negatives in parantheses.</p>
<p>In negative patterns, the minimum and maximum counts are ignored; these are presumed to be set in the positive pattern.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>The localized pattern to be applied. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parseError</em>&nbsp;</td><td>Struct to recieve information on position of error if an error is encountered </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002488">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1cc6a469471eeae2356819552281001b"></a><!-- doxytag: member="DecimalFormat::applyPattern" ref="a1cc6a469471eeae2356819552281001b" args="(const UnicodeString &amp;pattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::applyPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the pattern. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>The pattern to be applied. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002487">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="af2d13a3de17cf4085cc82f74a915af6d"></a><!-- doxytag: member="DecimalFormat::applyPattern" ref="af2d13a3de17cf4085cc82f74a915af6d" args="(const UnicodeString &amp;pattern, UParseError &amp;parseError, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::applyPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parseError</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Apply the given pattern to this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. </p>
<p>A pattern is a short-hand specification for the various formatting properties. These properties can also be changed individually through the various setter methods. </p>
<p>There is no limit to integer digits are set by this routine, since that is the typical end-user desire; use setMaximumInteger if you want to set a real value. For negative numbers, use a second pattern, separated by a semicolon </p>
<pre>
 .      Example "#,#00.0#" -&gt; 1,234.56
 </pre><p> This means a minimum of 2 integer digits, 1 fraction digit, and a maximum of 2 fraction digits. </p>
<pre>
 .      Example: "#,#00.0#;(#,#00.0#)" for negatives in parantheses.
 </pre><p> In negative patterns, the minimum and maximum counts are ignored; these are presumed to be set in the positive pattern.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>The pattern to be applied. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parseError</em>&nbsp;</td><td>Struct to recieve information on position of error if an error is encountered </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002486">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a8dfe7ad867c1480858a6902314bc96b9"></a><!-- doxytag: member="DecimalFormat::areSignificantDigitsUsed" ref="a8dfe7ad867c1480858a6902314bc96b9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormat::areSignificantDigitsUsed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if significant digits are in use, or false if integer and fraction digit counts are in use. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if significant digits are in use </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002498">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ab708755522b88a31695ed54eac6f1bbe"></a><!-- doxytag: member="DecimalFormat::clone" ref="ab708755522b88a31695ed54eac6f1bbe" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classFormat.html">Format</a>* DecimalFormat::clone </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clone this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object polymorphically. </p>
<p>The caller owns the result and should delete it when done.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a polymorphic copy of this <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002434">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a">Format</a>.</p>

</div>
</div>
<a class="anchor" id="a7bd1ea414645fcce54268b47d38c84ae"></a><!-- doxytag: member="DecimalFormat::format" ref="a7bd1ea414645fcce54268b47d38c84ae" args="(int64_t number, UnicodeString &amp;appendTo) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">int64_t&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p>
<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number. These methods call the <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> pure virtual <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> methods with the default <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002443">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#acfd48a8b10451ea0dd4fcc3cfb121b4b">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a353940a76151b71b954fcfb37a0f9611"></a><!-- doxytag: member="DecimalFormat::format" ref="a353940a76151b71b954fcfb37a0f9611" args="(int32_t number, UnicodeString &amp;appendTo) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p>
<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a long number. These methods call the <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> pure virtual <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> methods with the default <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002442">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#aaa05c67fc637d9127756d854581a17fc">NumberFormat</a>.</p>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l02291">2291</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

<p>References <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568">format()</a>.</p>

</div>
</div>
<a class="anchor" id="ac5b6d7339b4ea565dee15147cd29df09"></a><!-- doxytag: member="DecimalFormat::format" ref="ac5b6d7339b4ea565dee15147cd29df09" args="(double number, UnicodeString &amp;appendTo) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p>
<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a double number.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002441">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#ad0d0bf658489e6a530a6c7716ef44320">NumberFormat</a>.</p>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l02284">2284</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

<p>References <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568">format()</a>.</p>

</div>
</div>
<a class="anchor" id="aaf9c44cbcc2b7f0279dcc6f121b8bf13"></a><!-- doxytag: member="DecimalFormat::format" ref="aaf9c44cbcc2b7f0279dcc6f121b8bf13" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p>
<p>Formats an object to produce a string.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>The object to format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output parameter filled in with success or failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002440">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a67d754f52d336d911454e97ba32654de">NumberFormat</a>.</p>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l02275">2275</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

<p>References <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568">format()</a>.</p>

</div>
</div>
<a class="anchor" id="a9cd8dc27d2e975c453b12e123225da17"></a><!-- doxytag: member="DecimalFormat::format" ref="a9cd8dc27d2e975c453b12e123225da17" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, FieldPosition &amp;pos, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Error code indicating success or failure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002439">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a1afb44274993754d2099fe78f24c95c5"></a><!-- doxytag: member="DecimalFormat::format" ref="a1afb44274993754d2099fe78f24c95c5" args="(const DigitList &amp;number, UnicodeString &amp;appendTo, FieldPosition &amp;pos, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">const DigitList &amp;&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number. </p>
<p>The number is a DigitList wrapper onto a floating point decimal number. The default implementation in <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> converts the decimal number to a double and formats that.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The number, a DigitList format Decimal Floating Point. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000261">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a3f66a13580f2e17ace127cd13956a2c7">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="af1eef78b146ce1ee5ee6c8c580e602ca"></a><!-- doxytag: member="DecimalFormat::format" ref="af1eef78b146ce1ee5ee6c8c580e602ca" args="(const DigitList &amp;number, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">const DigitList &amp;&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number. </p>
<p>The number is a DigitList wrapper onto a floating point decimal number. The default implementation in <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> converts the decimal number to a double and formats that.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The number, a DigitList format Decimal Floating Point. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000260">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a692963dfb668c207add70f31da4dd77e">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a92b6cd5af73a8183eb3a3322db4a2c61"></a><!-- doxytag: member="DecimalFormat::format" ref="a92b6cd5af73a8183eb3a3322db4a2c61" args="(const StringPiece &amp;number, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classStringPiece.html">StringPiece</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number. </p>
<p>The syntax of the unformatted number is a "numeric string" as defined in the Decimal Arithmetic Specification, available at <a href="http://speleotrove.com/decimal">http://speleotrove.com/decimal</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The unformatted number, as a string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Can be NULL. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000143">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a96cdaf515b3b3ea1d2fa685f97b4b53e">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a12d61d1634942c8fd8dbc99e379eac64"></a><!-- doxytag: member="DecimalFormat::format" ref="a12d61d1634942c8fd8dbc99e379eac64" args="(int64_t number, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">int64_t&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Can be NULL. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000142">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a1879e7057949f13eb626eafc4d184c1f">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a4239fefb073af94327ccdac88bb5bf3e"></a><!-- doxytag: member="DecimalFormat::format" ref="a4239fefb073af94327ccdac88bb5bf3e" args="(int64_t number, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">int64_t&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002438">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#ac64ccd4841f822f601f2533e63e0592b">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a78ad4a93bb4af259f0909b5f4c207312"></a><!-- doxytag: member="DecimalFormat::format" ref="a78ad4a93bb4af259f0909b5f4c207312" args="(int32_t number, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a long number using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Can be NULL. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000141">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a917ebc57480c4244941f7750356e7596">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="aa2bab620a29369c545e85d544d73ad05"></a><!-- doxytag: member="DecimalFormat::format" ref="aa2bab620a29369c545e85d544d73ad05" args="(int32_t number, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a long number using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002437">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classNumberFormat.html#acaaca11795df052b165e82261b7825f1">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a15bb0a7e2c377a4bc0a3d786694f30d9"></a><!-- doxytag: member="DecimalFormat::format" ref="a15bb0a7e2c377a4bc0a3d786694f30d9" args="(double number, UnicodeString &amp;appendTo, FieldPositionIterator *posIter, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *&nbsp;</td>
          <td class="paramname"> <em>posIter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a double or long number using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>posIter</em>&nbsp;</td><td>On return, can be used to iterate over positions of fields generated by this format call. Can be NULL. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000140">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in 4.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a2e24260eda61044d532a577f0f711e7a">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="aed19f9279def60133b3122a2435ea568"></a><!-- doxytag: member="DecimalFormat::format" ref="aed19f9279def60133b3122a2435ea568" args="(double number, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::format </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a double or long number using base-10 representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002436">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classNumberFormat.html#a7078d52baaa94ddf6e0680a4bc2f542a">NumberFormat</a>.</p>

<p>Referenced by <a class="el" href="decimfmt_8h_source.html#l02275">format()</a>.</p>

</div>
</div>
<a class="anchor" id="a022de957369cbea0811ee07b3d934a22"></a><!-- doxytag: member="DecimalFormat::getCurrencyPluralInfo" ref="a022de957369cbea0811ee07b3d934a22" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classCurrencyPluralInfo.html">CurrencyPluralInfo</a>* DecimalFormat::getCurrencyPluralInfo </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the currency plural format information, which is generally not changed by the programmer or user. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>desired <a class="el" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002449">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a32cc0bfc2cffa8cb3978a67555fe7253"></a><!-- doxytag: member="DecimalFormat::getDecimalFormatSymbols" ref="a32cc0bfc2cffa8cb3978a67555fe7253" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a>* DecimalFormat::getDecimalFormatSymbols </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the decimal format symbols, which is generally not changed by the programmer or user. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>desired <a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002446">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a29d58da07dee220c1661ec37397babb2"></a><!-- doxytag: member="DecimalFormat::getDynamicClassID" ref="a29d58da07dee220c1661ec37397babb2" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> DecimalFormat::getDynamicClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a unique class ID POLYMORPHICALLY. </p>
<p>Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classDecimalFormat.html#a3d3a2d71fcf817ddc1473e9e5c59756c" title="Return true if the given Format objects are semantically equal.">operator==()</a> and <a class="el" href="classDecimalFormat.html#ab708755522b88a31695ed54eac6f1bbe" title="Clone this Format object polymorphically.">clone()</a> methods call this method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002502">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classNumberFormat.html#a63c193a4db6a1552073bf069d5d31749">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a9ff71ee7d761b1f802aa7e5d899ebe5c"></a><!-- doxytag: member="DecimalFormat::getEffectiveCurrency" ref="a9ff71ee7d761b1f802aa7e5d899ebe5c" args="(UChar *result, UErrorCode &amp;ec) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::getEffectiveCurrency </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ec</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the currency in effect for this formatter. </p>
<p>Subclasses should override this method as needed. Unlike <a class="el" href="classNumberFormat.html#acc485325edc696f35f73cbdad75eed59" title="Gets the currency used to display currency amounts.">getCurrency()</a>, this method should never return "". </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>output parameter for null-terminated result, which must have a capacity of at least 4 </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000264">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#ae79eb815aa14fa432eec4307a3e2bc28">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a96acb157e41ca30d73f7baef3e78e0a1"></a><!-- doxytag: member="DecimalFormat::getFormatWidth" ref="a96acb157e41ca30d73f7baef3e78e0a1" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t DecimalFormat::getFormatWidth </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the width to which the output of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> is padded. </p>
<p>The width is counted in 16-bit code units. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the format width, or zero if no padding is in effect </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a16b35a9d59d21f140c31e73dbb08758f" title="Set the width to which the output of format() is padded.">setFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae5eb36a42f0bc5b38585762fa819792b" title="Get the pad character used to pad to the format width.">getPadCharacterString</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a23c909183f4e0ed0c938fb67a1f5b5dd" title="Set the character used to pad to the format width.">setPadCharacter</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a44433620af9101170cdf90f5b56c9581" title="Get the position at which padding will take place.">getPadPosition</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a466c599088e944d2f9a73d2d251af4f3" title="Set the position at which padding will take place.">setPadPosition</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002466">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2609e24ab824305f1ed4c68523aa9820"></a><!-- doxytag: member="DecimalFormat::getGroupingSize" ref="a2609e24ab824305f1ed4c68523aa9820" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t DecimalFormat::getGroupingSize </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the grouping size. </p>
<p>Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the grouping size. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#af1111f8ae6bcae827973d5114b5a1dd7" title="Set the grouping size.">setGroupingSize</a> </dd>
<dd>
<a class="el" href="classNumberFormat.html#a6fe9bf9d863b9c85ba8f61699e2bbd5b" title="Returns true if grouping is used in this format.">NumberFormat::isGroupingUsed</a> </dd>
<dd>
DecimalFormatSymbols::getGroupingSeparator </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002478">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a415f43f510424b6606d8529933e6a284"></a><!-- doxytag: member="DecimalFormat::getMaximumSignificantDigits" ref="a415f43f510424b6606d8529933e6a284" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t DecimalFormat::getMaximumSignificantDigits </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the maximum number of significant digits that will be displayed. </p>
<p>This value has no effect unless <a class="el" href="classDecimalFormat.html#a8dfe7ad867c1480858a6902314bc96b9" title="Returns true if significant digits are in use, or false if integer and fraction digit...">areSignificantDigitsUsed()</a> returns true. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the most significant digits that will be shown </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002495">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a7f2624eca4e37bfdebcb8b27f016abb0"></a><!-- doxytag: member="DecimalFormat::getMinimumExponentDigits" ref="a7f2624eca4e37bfdebcb8b27f016abb0" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int8_t DecimalFormat::getMinimumExponentDigits </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the minimum exponent digits that will be shown. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the minimum exponent digits that will be shown </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a280ddb4755eadd569c668844eea83ec1" title="Set whether or not scientific notation is used.">setScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae27960a24003cd84116cb94d05efd893" title="Return whether or not scientific notation is used.">isScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#aa9bbe051c7f9962bb8a4a91cc32bb001" title="Set the minimum exponent digits that will be shown.">setMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a3f6ed363c1f0a3260153822f159ef136" title="Return whether the exponent sign is always shown.">isExponentSignAlwaysShown</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c341614d4fcdceb83345a32ab125ec1" title="Set whether the exponent sign is always shown.">setExponentSignAlwaysShown</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002474">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a0f903265e1115115509d1d45da5c5d15"></a><!-- doxytag: member="DecimalFormat::getMinimumSignificantDigits" ref="a0f903265e1115115509d1d45da5c5d15" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t DecimalFormat::getMinimumSignificantDigits </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the minimum number of significant digits that will be displayed. </p>
<p>This value has no effect unless <a class="el" href="classDecimalFormat.html#a8dfe7ad867c1480858a6902314bc96b9" title="Returns true if significant digits are in use, or false if integer and fraction digit...">areSignificantDigitsUsed()</a> returns true. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the fewest significant digits that will be shown </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002494">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aa7ed11a9a3bfecf78bf0323c09a89ce5"></a><!-- doxytag: member="DecimalFormat::getMultiplier" ref="aa7ed11a9a3bfecf78bf0323c09a89ce5" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t DecimalFormat::getMultiplier </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the multiplier for use in percent, permill, etc. </p>
<p>For a percentage, set the suffixes to have "%" and the multiplier to be 100. (For Arabic, use arabic percent symbol). For a permill, set the suffixes to have "\\u2031" and the multiplier to be 1000.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the multiplier for use in percent, permill, etc. Examples: with 100, 1.23 -&gt; "123", and "123" -&gt; 1.23 </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002460">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a85918d546a872ca3d33a4f1f15a9e5e0"></a><!-- doxytag: member="DecimalFormat::getNegativePrefix" ref="a85918d546a872ca3d33a4f1f15a9e5e0" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::getNegativePrefix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the negative prefix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param which will receive the negative prefix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. Examples: -123, ($123) (with negative suffix), sFr-123 </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002454">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a74c128baec0b40c6a02d495e9d1b66f6"></a><!-- doxytag: member="DecimalFormat::getNegativeSuffix" ref="a74c128baec0b40c6a02d495e9d1b66f6" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::getNegativeSuffix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the negative suffix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param which will receive the negative suffix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. Examples: -123%, ($123) (with positive suffixes) </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002458">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ae5eb36a42f0bc5b38585762fa819792b"></a><!-- doxytag: member="DecimalFormat::getPadCharacterString" ref="ae5eb36a42f0bc5b38585762fa819792b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> DecimalFormat::getPadCharacterString </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the pad character used to pad to the format width. </p>
<p>The default is ' '. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a string containing the pad character. This will always have a length of one 32-bit code point. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a16b35a9d59d21f140c31e73dbb08758f" title="Set the width to which the output of format() is padded.">setFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a96acb157e41ca30d73f7baef3e78e0a1" title="Get the width to which the output of format() is padded.">getFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a23c909183f4e0ed0c938fb67a1f5b5dd" title="Set the character used to pad to the format width.">setPadCharacter</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a44433620af9101170cdf90f5b56c9581" title="Get the position at which padding will take place.">getPadPosition</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a466c599088e944d2f9a73d2d251af4f3" title="Set the position at which padding will take place.">setPadPosition</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002468">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a44433620af9101170cdf90f5b56c9581"></a><!-- doxytag: member="DecimalFormat::getPadPosition" ref="a44433620af9101170cdf90f5b56c9581" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">EPadPosition</a> DecimalFormat::getPadPosition </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the position at which padding will take place. </p>
<p>This is the location at which padding will be inserted if the result of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> is shorter than the format width. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pad position, one of kPadBeforePrefix, kPadAfterPrefix, kPadBeforeSuffix, or kPadAfterSuffix. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a16b35a9d59d21f140c31e73dbb08758f" title="Set the width to which the output of format() is padded.">setFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a96acb157e41ca30d73f7baef3e78e0a1" title="Get the width to which the output of format() is padded.">getFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a23c909183f4e0ed0c938fb67a1f5b5dd" title="Set the character used to pad to the format width.">setPadCharacter</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae5eb36a42f0bc5b38585762fa819792b" title="Get the pad character used to pad to the format width.">getPadCharacterString</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a466c599088e944d2f9a73d2d251af4f3" title="Set the position at which padding will take place.">setPadPosition</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21" title="Pad position.">EPadPosition</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002470">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a542dc4e58b1d27bf9acc04caf6c392fe"></a><!-- doxytag: member="DecimalFormat::getPositivePrefix" ref="a542dc4e58b1d27bf9acc04caf6c392fe" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::getPositivePrefix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the positive prefix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param which will receive the positive prefix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. Examples: +123, $123, sFr123 </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002452">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="abc219af67d858829b4f258e42be2b362"></a><!-- doxytag: member="DecimalFormat::getPositiveSuffix" ref="abc219af67d858829b4f258e42be2b362" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::getPositiveSuffix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the positive suffix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param which will receive the positive suffix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. Example: 123% </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002456">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2625aaab4e08c60f390f72ba3ef512a2"></a><!-- doxytag: member="DecimalFormat::getRoundingIncrement" ref="a2625aaab4e08c60f390f72ba3ef512a2" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual double DecimalFormat::getRoundingIncrement </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the rounding increment. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A positive rounding increment, or 0.0 if rounding is not in effect. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a7d2a985abd8e4ac25c77e94f7f8ae2e7" title="Set the rounding increment.">setRoundingIncrement</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a9dd8911ea74be813c2446ee7a6657385" title="Get the rounding mode.">getRoundingMode</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c4239c9afd29b26ab405efda8d7f993" title="Set the rounding mode.">setRoundingMode</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002462">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9dd8911ea74be813c2446ee7a6657385"></a><!-- doxytag: member="DecimalFormat::getRoundingMode" ref="a9dd8911ea74be813c2446ee7a6657385" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">ERoundingMode</a> DecimalFormat::getRoundingMode </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the rounding mode. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A rounding mode </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a7d2a985abd8e4ac25c77e94f7f8ae2e7" title="Set the rounding increment.">setRoundingIncrement</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a2625aaab4e08c60f390f72ba3ef512a2" title="Get the rounding increment.">getRoundingIncrement</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c4239c9afd29b26ab405efda8d7f993" title="Set the rounding mode.">setRoundingMode</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002464">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aa215994a121009e3619e6e3884ced73b"></a><!-- doxytag: member="DecimalFormat::getSecondaryGroupingSize" ref="aa215994a121009e3619e6e3884ced73b" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t DecimalFormat::getSecondaryGroupingSize </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the secondary grouping size. </p>
<p>In some locales one grouping interval is used for the least significant integer digits (the primary grouping size), and another is used for all others (the secondary grouping size). A formatter supporting a secondary grouping size will return a positive integer unequal to the primary grouping size returned by <a class="el" href="classDecimalFormat.html#a2609e24ab824305f1ed4c68523aa9820" title="Return the grouping size.">getGroupingSize()</a>. For example, if the primary grouping size is 4, and the secondary grouping size is 2, then the number 123456789 formats as "1,23,45,6789", and the pattern appears as "#,##,###0". </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the secondary grouping size, or a value less than one if there is none </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a489755a7c9b3a772d950c952c2e513d5" title="Set the secondary grouping size.">setSecondaryGroupingSize</a> </dd>
<dd>
<a class="el" href="classNumberFormat.html#a6fe9bf9d863b9c85ba8f61699e2bbd5b" title="Returns true if grouping is used in this format.">NumberFormat::isGroupingUsed</a> </dd>
<dd>
DecimalFormatSymbols::getGroupingSeparator </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002480">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a2c44dda0c6621b3ff10b120fd760ea88"></a><!-- doxytag: member="DecimalFormat::getStaticClassID" ref="a2c44dda0c6621b3ff10b120fd760ea88" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> DecimalFormat::getStaticClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the class ID for this class. </p>
<p>This is useful only for comparing to a return value from <a class="el" href="classDecimalFormat.html#a29d58da07dee220c1661ec37397babb2" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a>. For example: </p>
<pre>
 .      Base* polymorphic_pointer = createPolymorphicObject();
 .      if (polymorphic_pointer-&gt;<a class="el" href="classDecimalFormat.html#a29d58da07dee220c1661ec37397babb2" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a> ==
 .          Derived::getStaticClassID()) ...
 </pre> <dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for all objects of this class. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002501">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#acfeb8972959e9383b026761d0e9e1e5e">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a856515c53689f8bbedf695b17b3e3769"></a><!-- doxytag: member="DecimalFormat::isDecimalSeparatorAlwaysShown" ref="a856515c53689f8bbedf695b17b3e3769" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormat::isDecimalSeparatorAlwaysShown </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Allows you to get the behavior of the decimal separator with integers. </p>
<p>(The decimal separator will always appear with decimals.)</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the decimal separator always appear with decimals. Example: Decimal ON: 12345 -&gt; 12345.; OFF: 12345 -&gt; 12345 </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002482">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a3f6ed363c1f0a3260153822f159ef136"></a><!-- doxytag: member="DecimalFormat::isExponentSignAlwaysShown" ref="a3f6ed363c1f0a3260153822f159ef136" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormat::isExponentSignAlwaysShown </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return whether the exponent sign is always shown. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the exponent is always prefixed with either the localized minus sign or the localized plus sign, false if only negative exponents are prefixed with the localized minus sign. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a280ddb4755eadd569c668844eea83ec1" title="Set whether or not scientific notation is used.">setScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae27960a24003cd84116cb94d05efd893" title="Return whether or not scientific notation is used.">isScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#aa9bbe051c7f9962bb8a4a91cc32bb001" title="Set the minimum exponent digits that will be shown.">setMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a7f2624eca4e37bfdebcb8b27f016abb0" title="Return the minimum exponent digits that will be shown.">getMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c341614d4fcdceb83345a32ab125ec1" title="Set whether the exponent sign is always shown.">setExponentSignAlwaysShown</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002476">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ae27960a24003cd84116cb94d05efd893"></a><!-- doxytag: member="DecimalFormat::isScientificNotation" ref="ae27960a24003cd84116cb94d05efd893" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormat::isScientificNotation </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return whether or not scientific notation is used. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if this object formats and parses scientific notation </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a280ddb4755eadd569c668844eea83ec1" title="Set whether or not scientific notation is used.">setScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a7f2624eca4e37bfdebcb8b27f016abb0" title="Return the minimum exponent digits that will be shown.">getMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#aa9bbe051c7f9962bb8a4a91cc32bb001" title="Set the minimum exponent digits that will be shown.">setMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a3f6ed363c1f0a3260153822f159ef136" title="Return whether the exponent sign is always shown.">isExponentSignAlwaysShown</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c341614d4fcdceb83345a32ab125ec1" title="Set whether the exponent sign is always shown.">setExponentSignAlwaysShown</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002472">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a80ae4009d0a89aaa339e38328c5f5f31"></a><!-- doxytag: member="DecimalFormat::operator=" ref="a80ae4009d0a89aaa339e38328c5f5f31" args="(const DecimalFormat &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDecimalFormat.html">DecimalFormat</a>&amp; DecimalFormat::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDecimalFormat.html">DecimalFormat</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rhs</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assignment operator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rhs</em>&nbsp;</td><td>the <a class="el" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a> object to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002432">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a8b9d5c0937f4da69d9a229fd10f8ec38">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a3d3a2d71fcf817ddc1473e9e5c59756c"></a><!-- doxytag: member="DecimalFormat::operator==" ref="a3d3a2d71fcf817ddc1473e9e5c59756c" args="(const Format &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormat::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> objects are semantically equal. </p>
<p>Objects of different subclasses are considered unequal.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>the object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the given <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> objects are semantically equal. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002435">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a97f4f81efd4747024deaf88ceb4d80a3">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a9c0309ac314fe3ec8a7cc4b50b99940a"></a><!-- doxytag: member="DecimalFormat::parse" ref="a9c0309ac314fe3ec8a7cc4b50b99940a" args="(const UnicodeString &amp;text, Formattable &amp;result, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse the given string using this object's choices. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text to be parsed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td><a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> to be set to the parse result. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output parameter filled in with success or failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002445">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a01ac6e0a7a47b2d8e387752d1a024b29">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="afe6f4084b4a6ccff6977501d90011fa4"></a><!-- doxytag: member="DecimalFormat::parse" ref="afe6f4084b4a6ccff6977501d90011fa4" args="(const UnicodeString &amp;text, Formattable &amp;result, ParsePosition &amp;parsePosition) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>parsePosition</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse the given string using this object's choices. </p>
<p>The method does string comparisons to try to find an optimal match. If no object can be parsed, index is unchanged, and NULL is returned. The result is returned as the most parsimonious type of <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> that will accomodate all of the necessary precision. For example, if the result is exactly 12, it will be returned as a long. However, if it is 1.5, it will be returned as a double.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text to be parsed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td><a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parsePosition</em>&nbsp;</td><td>The position to start parsing at on input. On output, moved to after the last successfully parse character. On parse failure, does not change. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002444">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classNumberFormat.html#ab2c59c0b036a413b6735c6d50b88ae25">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="aa83789398c1b9baa69aa31a5391eadf2"></a><!-- doxytag: member="DecimalFormat::parseCurrency" ref="aa83789398c1b9baa69aa31a5391eadf2" args="(const UnicodeString &amp;text, Formattable &amp;result, ParsePosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classFormattable.html">Formattable</a>&amp; DecimalFormat::parseCurrency </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses text from the given string as a currency amount. </p>
<p>Unlike the <a class="el" href="classDecimalFormat.html#afe6f4084b4a6ccff6977501d90011fa4" title="Parse the given string using this object&#39;s choices.">parse()</a> method, this method will attempt to parse a generic currency name, searching for a match of this object's locale's currency display names, or for a 3-letter ISO currency code. This method will fail if this format is not a currency format, that is, if it does not contain the currency pattern symbol (U+00A4) in its prefix or suffix.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>the string to parse </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>output parameter to receive result. This will have its currency set to the parsed ISO currency code. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>input-output position; on input, the position within text to match; must have 0 &lt;= pos.getIndex() &lt; text.length(); on output, the position after the last matched character. If the parse fails, the position in unchanged upon output. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to result </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000262">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a08bffcf90d1cc63882ab686b6b271f9b">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a2ac00a272f0b9f01c4004372c417d347"></a><!-- doxytag: member="DecimalFormat::setCurrency" ref="a2ac00a272f0b9f01c4004372c417d347" args="(const UChar *theCurrency)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setCurrency </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&nbsp;</td>
          <td class="paramname"> <em>theCurrency</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the currency used to display currency amounts. </p>
<p>See <a class="el" href="classDecimalFormat.html#a4c87fca5e0d14886bdaa4e0969f814e5" title="Sets the currency used to display currency amounts.">setCurrency(const UChar*, UErrorCode&amp;)</a>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000193">Deprecated:</a></b></dt><dd>ICU 3.0. Use <a class="el" href="classDecimalFormat.html#a4c87fca5e0d14886bdaa4e0969f814e5" title="Sets the currency used to display currency amounts.">setCurrency(const UChar*, UErrorCode&amp;)</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a4c87fca5e0d14886bdaa4e0969f814e5"></a><!-- doxytag: member="DecimalFormat::setCurrency" ref="a4c87fca5e0d14886bdaa4e0969f814e5" args="(const UChar *theCurrency, UErrorCode &amp;ec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setCurrency </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&nbsp;</td>
          <td class="paramname"> <em>theCurrency</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ec</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the currency used to display currency amounts. </p>
<p>This takes effect immediately, if this format is a currency format. If this format is not a currency format, then the currency is used if and when this object becomes a currency format through the application of a new pattern. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>theCurrency</em>&nbsp;</td><td>a 3-letter ISO code indicating new currency to use. It need not be null-terminated. May be the empty string or NULL to indicate no currency. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ec</em>&nbsp;</td><td>input-output error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002500">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a1dbc762d377858e70de924aacc59d113">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a3ee9dab51dcd5eac0534964c26b90d72"></a><!-- doxytag: member="DecimalFormat::setCurrencyPluralInfo" ref="a3ee9dab51dcd5eac0534964c26b90d72" args="(const CurrencyPluralInfo &amp;info)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setCurrencyPluralInfo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCurrencyPluralInfo.html">CurrencyPluralInfo</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>info</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the currency plural format information, which is generally not changed by the programmer or user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>info</em>&nbsp;</td><td>Currency Plural Info. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002451">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a973c2dd6666737ba8d91384ea77ff26b"></a><!-- doxytag: member="DecimalFormat::setDecimalFormatSymbols" ref="a973c2dd6666737ba8d91384ea77ff26b" args="(const DecimalFormatSymbols &amp;symbols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setDecimalFormatSymbols </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>symbols</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the decimal format symbols, which is generally not changed by the programmer or user. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>symbols</em>&nbsp;</td><td><a class="el" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002448">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1c767fd7397fd26ca7c0bae7fdcf2343"></a><!-- doxytag: member="DecimalFormat::setDecimalSeparatorAlwaysShown" ref="a1c767fd7397fd26ca7c0bae7fdcf2343" args="(UBool newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setDecimalSeparatorAlwaysShown </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Allows you to set the behavior of the decimal separator with integers. </p>
<p>(The decimal separator will always appear with decimals.)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>set TRUE if the decimal separator will always appear with decimals. Example: Decimal ON: 12345 -&gt; 12345.; OFF: 12345 -&gt; 12345 </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002483">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a4c341614d4fcdceb83345a32ab125ec1"></a><!-- doxytag: member="DecimalFormat::setExponentSignAlwaysShown" ref="a4c341614d4fcdceb83345a32ab125ec1" args="(UBool expSignAlways)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setExponentSignAlwaysShown </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>expSignAlways</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set whether the exponent sign is always shown. </p>
<p>This has no effect unless scientific notation is in use. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>expSignAlways</em>&nbsp;</td><td>TRUE if the exponent is always prefixed with either the localized minus sign or the localized plus sign, false if only negative exponents are prefixed with the localized minus sign. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a280ddb4755eadd569c668844eea83ec1" title="Set whether or not scientific notation is used.">setScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae27960a24003cd84116cb94d05efd893" title="Return whether or not scientific notation is used.">isScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#aa9bbe051c7f9962bb8a4a91cc32bb001" title="Set the minimum exponent digits that will be shown.">setMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a7f2624eca4e37bfdebcb8b27f016abb0" title="Return the minimum exponent digits that will be shown.">getMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a3f6ed363c1f0a3260153822f159ef136" title="Return whether the exponent sign is always shown.">isExponentSignAlwaysShown</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002477">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a16b35a9d59d21f140c31e73dbb08758f"></a><!-- doxytag: member="DecimalFormat::setFormatWidth" ref="a16b35a9d59d21f140c31e73dbb08758f" args="(int32_t width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setFormatWidth </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>width</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the width to which the output of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> is padded. </p>
<p>The width is counted in 16-bit code units. This method also controls whether padding is enabled. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>the width to which to pad the result of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a>, or zero to disable padding. A negative width is equivalent to 0. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a96acb157e41ca30d73f7baef3e78e0a1" title="Get the width to which the output of format() is padded.">getFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae5eb36a42f0bc5b38585762fa819792b" title="Get the pad character used to pad to the format width.">getPadCharacterString</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a23c909183f4e0ed0c938fb67a1f5b5dd" title="Set the character used to pad to the format width.">setPadCharacter</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a44433620af9101170cdf90f5b56c9581" title="Get the position at which padding will take place.">getPadPosition</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a466c599088e944d2f9a73d2d251af4f3" title="Set the position at which padding will take place.">setPadPosition</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002467">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="af1111f8ae6bcae827973d5114b5a1dd7"></a><!-- doxytag: member="DecimalFormat::setGroupingSize" ref="af1111f8ae6bcae827973d5114b5a1dd7" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setGroupingSize </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the grouping size. </p>
<p>Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the grouping size. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a2609e24ab824305f1ed4c68523aa9820" title="Return the grouping size.">getGroupingSize</a> </dd>
<dd>
<a class="el" href="classNumberFormat.html#a42f1ff1c899ec393a87ef24cfdfdd0a1" title="Set whether or not grouping will be used in this format.">NumberFormat::setGroupingUsed</a> </dd>
<dd>
DecimalFormatSymbols::setGroupingSeparator </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002479">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a383f882e65849d2cf59550c875f61f1d"></a><!-- doxytag: member="DecimalFormat::setMaximumFractionDigits" ref="a383f882e65849d2cf59550c875f61f1d" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setMaximumFractionDigits </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the maximum number of digits allowed in the fraction portion of a number. </p>
<p>This override limits the fraction digit count to 340.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the maximum number of digits allowed in the fraction portion of a number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#abb97d22c2d628aab87d695c6f66e8dbb" title="Sets the maximum number of digits allowed in the fraction portion of a number.">NumberFormat::setMaximumFractionDigits</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002492">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#abb97d22c2d628aab87d695c6f66e8dbb">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="aaf3692b04cf2fafbc536bcdaf9caea25"></a><!-- doxytag: member="DecimalFormat::setMaximumIntegerDigits" ref="aaf3692b04cf2fafbc536bcdaf9caea25" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setMaximumIntegerDigits </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the maximum number of digits allowed in the integer portion of a number. </p>
<p>This override limits the integer digit count to 309.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the maximum number of digits allowed in the integer portion of a number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#a561c13b71c338e6b68729c786d2a3a09" title="Sets the maximum number of digits allowed in the integer portion of a number.">NumberFormat::setMaximumIntegerDigits</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002490">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a561c13b71c338e6b68729c786d2a3a09">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="a985457f807266318caaa13a20554906b"></a><!-- doxytag: member="DecimalFormat::setMaximumSignificantDigits" ref="a985457f807266318caaa13a20554906b" args="(int32_t max)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DecimalFormat::setMaximumSignificantDigits </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>max</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the maximum number of significant digits that will be displayed. </p>
<p>If <code>max</code> is less than one then it is set to one. If the minimum significant digits count is greater than <code>max</code>, then it is set to <code>max</code>. This value has no effect unless areSignificantDigits() returns true. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>max</em>&nbsp;</td><td>the most significant digits to be shown </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002497">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aa9bbe051c7f9962bb8a4a91cc32bb001"></a><!-- doxytag: member="DecimalFormat::setMinimumExponentDigits" ref="aa9bbe051c7f9962bb8a4a91cc32bb001" args="(int8_t minExpDig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setMinimumExponentDigits </td>
          <td>(</td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>minExpDig</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the minimum exponent digits that will be shown. </p>
<p>This has no effect unless scientific notation is in use. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>minExpDig</em>&nbsp;</td><td>a value &gt;= 1 indicating the fewest exponent digits that will be shown. Values less than 1 will be treated as 1. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a280ddb4755eadd569c668844eea83ec1" title="Set whether or not scientific notation is used.">setScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae27960a24003cd84116cb94d05efd893" title="Return whether or not scientific notation is used.">isScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a7f2624eca4e37bfdebcb8b27f016abb0" title="Return the minimum exponent digits that will be shown.">getMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a3f6ed363c1f0a3260153822f159ef136" title="Return whether the exponent sign is always shown.">isExponentSignAlwaysShown</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c341614d4fcdceb83345a32ab125ec1" title="Set whether the exponent sign is always shown.">setExponentSignAlwaysShown</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002475">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="acb6abe86ebcfd4bb0b91dec005da9d7b"></a><!-- doxytag: member="DecimalFormat::setMinimumFractionDigits" ref="acb6abe86ebcfd4bb0b91dec005da9d7b" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setMinimumFractionDigits </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the minimum number of digits allowed in the fraction portion of a number. </p>
<p>This override limits the fraction digit count to 340.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the minimum number of digits allowed in the fraction portion of a number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#a454c39db13cb0dde930e9249ee726db5" title="Sets the minimum number of digits allowed in the fraction portion of a number.">NumberFormat::setMinimumFractionDigits</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002493">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a454c39db13cb0dde930e9249ee726db5">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="acda98ebc96abd54c9d796e90231f3bf9"></a><!-- doxytag: member="DecimalFormat::setMinimumIntegerDigits" ref="acda98ebc96abd54c9d796e90231f3bf9" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setMinimumIntegerDigits </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the minimum number of digits allowed in the integer portion of a number. </p>
<p>This override limits the integer digit count to 309.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the minimum number of digits allowed in the integer portion of a number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#a92a1454c564b66707d0145a123f65cf3" title="Sets the minimum number of digits allowed in the integer portion of a number.">NumberFormat::setMinimumIntegerDigits</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002491">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classNumberFormat.html#a92a1454c564b66707d0145a123f65cf3">NumberFormat</a>.</p>

</div>
</div>
<a class="anchor" id="af970944ad7d9d249aeb488bd4872fe2a"></a><!-- doxytag: member="DecimalFormat::setMinimumSignificantDigits" ref="af970944ad7d9d249aeb488bd4872fe2a" args="(int32_t min)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DecimalFormat::setMinimumSignificantDigits </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>min</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the minimum number of significant digits that will be displayed. </p>
<p>If <code>min</code> is less than one then it is set to one. If the maximum significant digits count is less than <code>min</code>, then it is set to <code>min</code>. This value has no effect unless areSignificantDigits() returns true. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>min</em>&nbsp;</td><td>the fewest significant digits to be shown </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002496">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aeaa002ef2300082f24802df929162f83"></a><!-- doxytag: member="DecimalFormat::setMultiplier" ref="aeaa002ef2300082f24802df929162f83" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setMultiplier </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the multiplier for use in percent, permill, etc. </p>
<p>For a percentage, set the suffixes to have "%" and the multiplier to be 100. (For Arabic, use arabic percent symbol). For a permill, set the suffixes to have "\\u2031" and the multiplier to be 1000.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the multiplier for use in percent, permill, etc. Examples: with 100, 1.23 -&gt; "123", and "123" -&gt; 1.23 </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002461">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a923f9be542ebdbdf07f26dd849a6047b"></a><!-- doxytag: member="DecimalFormat::setNegativePrefix" ref="a923f9be542ebdbdf07f26dd849a6047b" args="(const UnicodeString &amp;newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setNegativePrefix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the negative prefix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the the negative prefix to be set. Examples: -123, ($123) (with negative suffix), sFr-123 </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002455">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aee6c5f9d27a8df1d33bc65d9a5b546bf"></a><!-- doxytag: member="DecimalFormat::setNegativeSuffix" ref="aee6c5f9d27a8df1d33bc65d9a5b546bf" args="(const UnicodeString &amp;newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setNegativeSuffix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the negative suffix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the negative suffix to be set. Examples: 123% </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002459">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a23c909183f4e0ed0c938fb67a1f5b5dd"></a><!-- doxytag: member="DecimalFormat::setPadCharacter" ref="a23c909183f4e0ed0c938fb67a1f5b5dd" args="(const UnicodeString &amp;padChar)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setPadCharacter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>padChar</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the character used to pad to the format width. </p>
<p>If padding is not enabled, then this will take effect if padding is later enabled. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>padChar</em>&nbsp;</td><td>a string containing the pad charcter. If the string has length 0, then the pad characer is set to ' '. Otherwise padChar.char32At(0) will be used as the pad character. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a16b35a9d59d21f140c31e73dbb08758f" title="Set the width to which the output of format() is padded.">setFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a96acb157e41ca30d73f7baef3e78e0a1" title="Get the width to which the output of format() is padded.">getFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae5eb36a42f0bc5b38585762fa819792b" title="Get the pad character used to pad to the format width.">getPadCharacterString</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a44433620af9101170cdf90f5b56c9581" title="Get the position at which padding will take place.">getPadPosition</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a466c599088e944d2f9a73d2d251af4f3" title="Set the position at which padding will take place.">setPadPosition</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002469">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a466c599088e944d2f9a73d2d251af4f3"></a><!-- doxytag: member="DecimalFormat::setPadPosition" ref="a466c599088e944d2f9a73d2d251af4f3" args="(EPadPosition padPos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setPadPosition </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">EPadPosition</a>&nbsp;</td>
          <td class="paramname"> <em>padPos</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the position at which padding will take place. </p>
<p>This is the location at which padding will be inserted if the result of <a class="el" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format()</a> is shorter than the format width. This has no effect unless padding is enabled. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>padPos</em>&nbsp;</td><td>the pad position, one of kPadBeforePrefix, kPadAfterPrefix, kPadBeforeSuffix, or kPadAfterSuffix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a16b35a9d59d21f140c31e73dbb08758f" title="Set the width to which the output of format() is padded.">setFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a96acb157e41ca30d73f7baef3e78e0a1" title="Get the width to which the output of format() is padded.">getFormatWidth</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a23c909183f4e0ed0c938fb67a1f5b5dd" title="Set the character used to pad to the format width.">setPadCharacter</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ae5eb36a42f0bc5b38585762fa819792b" title="Get the pad character used to pad to the format width.">getPadCharacterString</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a44433620af9101170cdf90f5b56c9581" title="Get the position at which padding will take place.">getPadPosition</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21" title="Pad position.">EPadPosition</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002471">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a955034e72cf166f9b9c933b2e7d0c0ce"></a><!-- doxytag: member="DecimalFormat::setPositivePrefix" ref="a955034e72cf166f9b9c933b2e7d0c0ce" args="(const UnicodeString &amp;newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setPositivePrefix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the positive prefix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the the positive prefix to be set. Examples: +123, $123, sFr123 </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002453">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="acc7ebd164e98f56a044861a77eb5b7b0"></a><!-- doxytag: member="DecimalFormat::setPositiveSuffix" ref="acc7ebd164e98f56a044861a77eb5b7b0" args="(const UnicodeString &amp;newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setPositiveSuffix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the positive suffix. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the positive suffix to be set. Example: 123% </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002457">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a7d2a985abd8e4ac25c77e94f7f8ae2e7"></a><!-- doxytag: member="DecimalFormat::setRoundingIncrement" ref="a7d2a985abd8e4ac25c77e94f7f8ae2e7" args="(double newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setRoundingIncrement </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the rounding increment. </p>
<p>This method also controls whether rounding is enabled. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>A positive rounding increment, or 0.0 to disable rounding. Negative increments are equivalent to 0.0. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a2625aaab4e08c60f390f72ba3ef512a2" title="Get the rounding increment.">getRoundingIncrement</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a9dd8911ea74be813c2446ee7a6657385" title="Get the rounding mode.">getRoundingMode</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c4239c9afd29b26ab405efda8d7f993" title="Set the rounding mode.">setRoundingMode</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002463">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a4c4239c9afd29b26ab405efda8d7f993"></a><!-- doxytag: member="DecimalFormat::setRoundingMode" ref="a4c4239c9afd29b26ab405efda8d7f993" args="(ERoundingMode roundingMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setRoundingMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">ERoundingMode</a>&nbsp;</td>
          <td class="paramname"> <em>roundingMode</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the rounding mode. </p>
<p>This has no effect unless the rounding increment is greater than zero. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>roundingMode</em>&nbsp;</td><td>A rounding mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#a7d2a985abd8e4ac25c77e94f7f8ae2e7" title="Set the rounding increment.">setRoundingIncrement</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a2625aaab4e08c60f390f72ba3ef512a2" title="Get the rounding increment.">getRoundingIncrement</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a9dd8911ea74be813c2446ee7a6657385" title="Get the rounding mode.">getRoundingMode</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002465">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a280ddb4755eadd569c668844eea83ec1"></a><!-- doxytag: member="DecimalFormat::setScientificNotation" ref="a280ddb4755eadd569c668844eea83ec1" args="(UBool useScientific)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setScientificNotation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>useScientific</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set whether or not scientific notation is used. </p>
<p>When scientific notation is used, the effective maximum number of integer digits is &lt;= 8. If the maximum number of integer digits is set to more than 8, the effective maximum will be 1. This allows this call to generate a 'default' scientific number format without additional changes. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>useScientific</em>&nbsp;</td><td>TRUE if this object formats and parses scientific notation </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#ae27960a24003cd84116cb94d05efd893" title="Return whether or not scientific notation is used.">isScientificNotation</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a7f2624eca4e37bfdebcb8b27f016abb0" title="Return the minimum exponent digits that will be shown.">getMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#aa9bbe051c7f9962bb8a4a91cc32bb001" title="Set the minimum exponent digits that will be shown.">setMinimumExponentDigits</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a3f6ed363c1f0a3260153822f159ef136" title="Return whether the exponent sign is always shown.">isExponentSignAlwaysShown</a> </dd>
<dd>
<a class="el" href="classDecimalFormat.html#a4c341614d4fcdceb83345a32ab125ec1" title="Set whether the exponent sign is always shown.">setExponentSignAlwaysShown</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002473">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a489755a7c9b3a772d950c952c2e513d5"></a><!-- doxytag: member="DecimalFormat::setSecondaryGroupingSize" ref="a489755a7c9b3a772d950c952c2e513d5" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DecimalFormat::setSecondaryGroupingSize </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the secondary grouping size. </p>
<p>If set to a value less than 1, then secondary grouping is turned off, and the primary grouping size is used for all intervals, not just the least significant.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value of the secondary grouping size. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#aa215994a121009e3619e6e3884ced73b" title="Return the secondary grouping size.">getSecondaryGroupingSize</a> </dd>
<dd>
<a class="el" href="classNumberFormat.html#a42f1ff1c899ec393a87ef24cfdfdd0a1" title="Set whether or not grouping will be used in this format.">NumberFormat::setGroupingUsed</a> </dd>
<dd>
DecimalFormatSymbols::setGroupingSeparator </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002481">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="aea4a7be245a5094ad7225a443ee39409"></a><!-- doxytag: member="DecimalFormat::setSignificantDigitsUsed" ref="aea4a7be245a5094ad7225a443ee39409" args="(UBool useSignificantDigits)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DecimalFormat::setSignificantDigitsUsed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>useSignificantDigits</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether significant digits are in use, or integer and fraction digit counts are in use. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>useSignificantDigits</em>&nbsp;</td><td>true to use significant digits, or false to use integer and fraction digit counts </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002499">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1eaa21381319486ce285ab680a14c918"></a><!-- doxytag: member="DecimalFormat::toLocalizedPattern" ref="a1eaa21381319486ce285ab680a14c918" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::toLocalizedPattern </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Synthesizes a localized pattern string that represents the current state of this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param which will receive the localized pattern. Previous contents are deleted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#af2d13a3de17cf4085cc82f74a915af6d" title="Apply the given pattern to this Format object.">applyPattern</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002485">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ab5d50567589c29105075cecfea1c98dc"></a><!-- doxytag: member="DecimalFormat::toPattern" ref="ab5d50567589c29105075cecfea1c98dc" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DecimalFormat::toPattern </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Synthesizes a pattern string that represents the current state of this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Output param which will receive the pattern. Previous contents are deleted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDecimalFormat.html#af2d13a3de17cf4085cc82f74a915af6d" title="Apply the given pattern to this Format object.">applyPattern</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002484">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="af41fc1a3bde85bec4649668300f60148"></a><!-- doxytag: member="DecimalFormat::fgNumberPatterns" ref="af41fc1a3bde85bec4649668300f60148" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="classDecimalFormat.html#af41fc1a3bde85bec4649668300f60148">DecimalFormat::fgNumberPatterns</a>[]<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The resource tags we use to retrieve decimal format data from locale resource bundles. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000194">Deprecated:</a></b></dt><dd>ICU 3.4. This string has no public purpose. Please don't use it. </dd></dl>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l01817">1817</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab499b677e78e3320d6704b21f8a3ad23"></a><!-- doxytag: member="DecimalFormat::kDoubleFractionDigits" ref="ab499b677e78e3320d6704b21f8a3ad23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int32_t <a class="el" href="classDecimalFormat.html#ab499b677e78e3320d6704b21f8a3ad23">DecimalFormat::kDoubleFractionDigits</a><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>number of fraction digits </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002504">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l02259">2259</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8d5140e73b831fedb039ccf3c303c156"></a><!-- doxytag: member="DecimalFormat::kDoubleIntegerDigits" ref="a8d5140e73b831fedb039ccf3c303c156" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int32_t <a class="el" href="classDecimalFormat.html#a8d5140e73b831fedb039ccf3c303c156">DecimalFormat::kDoubleIntegerDigits</a><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>number of integer digits </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002503">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l02255">2255</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

</div>
</div>
<a class="anchor" id="aefc212fd0526b37ca733b1827d28f440"></a><!-- doxytag: member="DecimalFormat::kMaxScientificIntegerDigits" ref="aefc212fd0526b37ca733b1827d28f440" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int32_t <a class="el" href="classDecimalFormat.html#aefc212fd0526b37ca733b1827d28f440">DecimalFormat::kMaxScientificIntegerDigits</a><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>When someone turns on scientific mode, we assume that more than this number of digits is due to flipping from some other mode that didn't restrict the maximum, and so we force 1 integer digit. </p>
<p>We don't bother to track and see if someone is using exponential notation with more than this number, it wouldn't make sense anyway, and this is just to make sure that someone turning on scientific mode with default settings doesn't end up with lots of zeroes. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002505">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>Definition at line <a class="el" href="decimfmt_8h_source.html#l02271">2271</a> of file <a class="el" href="decimfmt_8h_source.html">decimfmt.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="decimfmt_8h_source.html">decimfmt.h</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>