Calculates the natural logarithm of the sum of field value and
1. For small values of x
, the
result of log1p(x)
is much
closer to the true result of ln(1 +
x)
than the floating-point evaluation of
log(1.0+x)
.
Reading time: 1 minutes