tpl/math: Add log function

It might be very useful for building tag clouds.
This commit is contained in:
Artem Sidorenko authored and Bjørn Erik Pedersen committed 2017-07-03 00:20:48 +02:00
1 parent ab4e5da810
commit 2afe074771
1 file changed
+6
+6
View File
@@ -432,6 +432,12 @@ favicon.ico: {{.Width}} x {{.Height}}
<td><code>{{div 6 3}}</code> → 2</td> <td><code>{{div 6 3}}</code> → 2</td>
</tr> </tr>
<tr>
<td><code>math.Log</code></td>
<td>Natural logarithm of one float.</td>
<td><code>{{math.Log 1.0}}</code> → 0</td>
</tr>
<tr> <tr>
<td><code>mod</code></td> <td><code>mod</code></td>
<td>Modulus of two integers.</td> <td>Modulus of two integers.</td>