how to calculate logarithm with base 2 with approx code example Example: log(10000000/1000) Example for finding IDF -Inverse Document Frequency