[#absl-Dec-2constructor]
= xref:absl.adoc[absl]::xref:absl/Dec.adoc[Dec]::Dec
:relfileprefix: ../../
:mrdocs:

Constructs a `Dec` from an integral value&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;cat&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Int&gt;
explicit
Dec(
    Int v,
    xref:absl/PadSpec.adoc[PadSpec] spec = absl&colon;&colon;kNoPad)
requires sizeof(Int) &lt;&equals; 8;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The value to format as decimal&period;
| *spec*
| The padding specification to apply&period;
|===


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