log(b numeric, x numeric) logarithm to base b : log « Math Functions « PostgreSQL






log(b numeric, x numeric) logarithm to base b


postgres=# -- log(b numeric, x numeric) logarithm to base b
postgres=#
postgres=# select log(2.0, 64.0);
        log
--------------------
 6.0000000000000000
(1 row)

postgres=#
           
       








Related examples in the same category

1.log(dp or numeric) base 10 logarithm
2.log(b, x): Returns the base b logarithm of x
3.log(x): Returns the base 10 logarithm of x
4.log(10, 12.0) AS log_12, log(3, 12.0) AS "log 12, base 3";