[#BloombergLP-bdldfp-DecimalFormatConfig-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalFormatConfig.adoc[DecimalFormatConfig]::DecimalFormatConfig
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdldfp&lowbar;decimalformatconfig&period;h&gt;`

Create an object of this class having the default attribute values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-08.adoc[DecimalFormatConfig]();
----

[.small]#xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create an object of this class having the specified `precision` to control how many digits are written after a decimal point&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-09.adoc[DecimalFormatConfig](
    int precision,
    xref:BloombergLP/bdldfp/DecimalFormatConfig/Style-06.adoc[Style] style = e&lowbar;NATURAL,
    xref:BloombergLP/bdldfp/DecimalFormatConfig/Sign-0a.adoc[Sign] sign = e&lowbar;NEGATIVE&lowbar;ONLY,
    char const* infinity = &quot;inf&quot;,
    char const* nan = &quot;nan&quot;,
    char const* snan = &quot;snan&quot;,
    char point = &apos;&period;&apos;,
    char exponent = &apos;e&apos;,
    bool showpoint = false,
    int expWidth = 2);
----

[.small]#xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *precision*
| number of digits written after the decimal point
| *style*
| how the decimal number is written
| *sign*
| how the sign is output
| *infinity*
| string used to output an infinity value
| *nan*
| string used to output a NaN value
| *snan*
| string used to output a signaling NaN value
| *point*
| character used for decimal points
| *exponent*
| character used for the exponent
| *showpoint*
| whether a decimal point is always displayed
| *expWidth*
| minimum number of digits used to write the exponent
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
