• Resolved esormc

    (@esormc)


    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 6 years, 10 months ago by esormc.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@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.

    Thread Starter esormc

    (@esormc)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Log(x) function’ is closed to new replies.