Module: kamailio
Branch: master
Commit: cc0ef8e5bcdb6fd325572cbffb3ddcf6aaa32435
URL:
https://github.com/kamailio/kamailio/commit/cc0ef8e5bcdb6fd325572cbffb3ddcf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-04-17T09:09:09+02:00
math: docs for math_sqrt()
---
Modified: src/modules/math/doc/math_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/cc0ef8e5bcdb6fd325572cbffb3ddcf…
Patch:
https://github.com/kamailio/kamailio/commit/cc0ef8e5bcdb6fd325572cbffb3ddcf…
---
diff --git a/src/modules/math/doc/math_admin.xml b/src/modules/math/doc/math_admin.xml
index fe70654d319..03faf998495 100644
--- a/src/modules/math/doc/math_admin.xml
+++ b/src/modules/math/doc/math_admin.xml
@@ -143,6 +143,28 @@
$var(x) = 100;
math_log10("$var(x)", "$var(res)");
...
+</programlisting>
+ </example>
+ </section>
+ <section id="math.f.sqrt">
+ <title>
+ <function moreinfo="none">math_sqrt(x, res)</function>
+ </title>
+ <para>
+ The function computes the square root of x and stores the result
+ in res.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>math_sqrt</function> usage</title>
+ <programlisting format="linespecific">
+...
+ math_sqrt("16", "$var(res)");
+ $var(x) = 16;
+ math_sqrt("$var(x)", "$var(res)");
+...
</programlisting>
</example>
</section>