https://issues.qgis.org/https://issues.qgis.org/favicon.ico2012-02-15T22:12:36ZQGIS Issue TrackingQGIS Application - Bug report #5032: `log(100,10)` does not give the same result as `log10(100)`!https://issues.qgis.org/issues/5032?journal_id=292222012-02-15T22:12:36ZAlister Hood
<ul></ul><p>Sorry - I neglected to say that this is of course in the new field calculator and expression based labelling.</p>
<p>And you'll see the same effect comparing with ln()</p> QGIS Application - Bug report #5032: `log(100,10)` does not give the same result as `log10(100)`!https://issues.qgis.org/issues/5032?journal_id=293392012-02-22T13:22:37ZMartin Dobiaswonder.sk@gmail.com
<ul><li><strong>Resolution</strong> set to <i>invalid</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>The order of parameters is actually reversed from what you have expected: log(base,x) - that follows order used in other SQL engines (postgresql, mysql).</p> QGIS Application - Bug report #5032: `log(100,10)` does not give the same result as `log10(100)`!https://issues.qgis.org/issues/5032?journal_id=293412012-02-22T17:28:34ZAlister Hood
<ul><li><strong>File</strong> <a href="/attachments/download/4291/log_help_fix.diff">log_help_fix.diff</a><a href="/attachments/4291/log_help_fix.diff"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li></ul><p>Of course, thanks.<br />So unless it has changed since, I made a mistake when I wrote the help for it.<br />We need this fix.</p>