[#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`. == Synopsis Declared in `<bdldfp_decimalutil.h>` [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: * if `x` is NaN (either signaling or quiet), quiet NaN is returned. * if `x` is +/‐infinity or +/‐0, it is returned unmodified. [.small]#Created with https://www.mrdocs.com[MrDocs]#