Title: Log(x) function
Last modified: May 31, 2018

---

# Log(x) function

 *  Resolved [esormc](https://wordpress.org/support/users/esormc/)
 * (@esormc)
 * [8 years ago](https://wordpress.org/support/topic/logx-function/)
 * I’m having trouble using the log function as it calculates the wrong number.
 * For example, I enter log(19.5) and this plugin calculates it as 2.97
 * It should be 1.29
 * Any ideas?
 * Thanks
    -  This topic was modified 8 years ago by [esormc](https://wordpress.org/support/users/esormc/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years ago](https://wordpress.org/support/topic/logx-function/#post-10343490)
 * Hello [@esormc](https://wordpress.org/support/users/esormc/),
 * In javascript the “log” operation represents the natural logarithm, if you want
   calculate a logarithm base 10, please, use the custom operation included with
   the plugin:
 * logab(a,b) = logarithm of “a” base “b”
 * In your specific example:
 * logab(19.5,10) = 1.2900346113625178
 * Best regards.
 *  Thread Starter [esormc](https://wordpress.org/support/users/esormc/)
 * (@esormc)
 * [8 years ago](https://wordpress.org/support/topic/logx-function/#post-10343511)
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Log(x) function’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [esormc](https://wordpress.org/support/users/esormc/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/logx-function/#post-10343511)
 * Status: resolved