[#BloombergLP-bdldfp-DecimalUtil-fabs-073]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::fabs
:relfileprefix: ../../../
:mrdocs:

Return the absolute value of the specified `x`&period;

== Synopsis

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

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

== 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;


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