»log Function log returns the logarithm of a given number in a given base. »Examples log and ceil can be used together to find the minimum number of binary digits required to represent a given number of distinct values: