Forums
Home / Plugin: Calculated Fields Form / Log(x) function
(@esormc)
6 years, 10 months ago
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
(@codepeople)
Hello @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.
Thank you!