[#BloombergLP-bdldfp-DecimalUtil-log-06b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::log :relfileprefix: ../../../ :mrdocs: Return the natural (base `e`) logarithm of the specified `x`. == Synopsis Declared in `<bdldfp_decimalutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] log(xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x); ---- == Description Special value handling: * If `x` is +/‐0, ‐infinity is returned and the value of the macro `ERANGE` is stored into `errno`. * If `x` is 1, +0 is returned. * If `x` is negative, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`. * If `x` is +infinity, +infinity is returned. * If `x` is quiet NaN, quiet NaN is returned. * If `x` is signaling NaN, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`. [.small]#Created with https://www.mrdocs.com[MrDocs]#