Return the natural logarithm of x.
Synopsis
Declared in <bdldfp_decimalimputil.h>
static
DecimalImpUtil::ValueType32
log(ValueType32 x);
Description
Return the natural (base e) logarithm of the specified x.
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.
Return Value
the natural logarithm of x
Parameters
Name |
Description |
x |
input value |
Created with MrDocs