Skip to content

Commit 837fe4a

Browse files
committed
document math/log
1 parent a4e7387 commit 837fe4a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

v0.3/handbook/libraries/stdlib.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,34 @@ bind
316316
</tr>
317317
</table>
318318

319+
<table class="libitem">
320+
<tr>
321+
<td colspan="2">
322+
<b>math/log</b> - Calculate the natural log of a value
323+
</td>
324+
</tr>
325+
326+
<tr>
327+
<td>
328+
<ul>
329+
<li><strong>value</strong> - the value to take the log of</li>
330+
</ul>
331+
</td>
332+
<td>
333+
<code>
334+
calculate the log of 17
335+
```
336+
search
337+
x = math/log[value: 17]
338+
339+
bind
340+
[#ui/text text: "log(17) = {{x}}"]
341+
```
342+
</code>
343+
</td>
344+
</tr>
345+
</table>
346+
319347
<table class="libitem">
320348
<tr>
321349
<td colspan="2">

0 commit comments

Comments
 (0)