[#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 `<bdldfp_decimalformatconfig.h>` Create an object of this class having the default attribute values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-08.adoc[DecimalFormatConfig](); ---- [.small]#xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-08.adoc[_» more..._]# Create an object of this class having the specified `precision` to control how many digits are written after a decimal point. [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_NATURAL, xref:BloombergLP/bdldfp/DecimalFormatConfig/Sign-0a.adoc[Sign] sign = e_NEGATIVE_ONLY, char const* infinity = "inf", char const* nan = "nan", char const* snan = "snan", char point = '.', char exponent = 'e', bool showpoint = false, int expWidth = 2); ---- [.small]#xref:BloombergLP/bdldfp/DecimalFormatConfig/2constructor-09.adoc[_» more..._]# == 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]#