[#BloombergLP-bdldfp-DecimalUtil-trunc-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::trunc
:relfileprefix: ../../../
:mrdocs:

Same as the related overload above for `trunc`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64]
trunc(
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] x,
    unsigned int precision);
----

== Return Value

`x` truncated to the specified number of decimal places

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| value to truncate
| *precision*
| number of decimal places to retain
|===


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