Newer Version Available

This content describes an older version of this product. View Latest

log(m, n)

Returns the natural logarithm (base m) of a number n. The values m and n can be any positive, non-zero numeric value in the range 0 < m, n <= 1e308 and m ≠ 1.
The smallest number input allowed for m is >0, m!=1. The smallest number for m or n that will not produce 0 is log(10, 0.3e-323).
These examples are valid:
1q = foreach q generate log(10, Population) as Population;
2q = filter q by log(10, Population) < 15;
These examples are invalid:
1q = group q by log(10, Population);
2q = order q by log(10, Population);