[#BloombergLP-bdldfp-DecimalImpUtil-fabs-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::fabs
:relfileprefix: ../../../
:mrdocs:

Return the absolute value of `x`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32]
fabs(xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x);
----

== Description

Special value handling&colon; &ast; if `x` is NaN (either signaling or quiet), quiet NaN is returned&period; &ast; if `x` is &plus;&sol;&hyphen;infinity or &plus;&sol;&hyphen;0, it is returned unmodified&period;

== Return Value

the absolute value of `x`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| value whose absolute value is returned
|===


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