We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2cdf73 + 6911897 commit ae0b889Copy full SHA for ae0b889
index.html
@@ -403,7 +403,10 @@ <h6>private functions (use carefully)</h6>
403
<h6>string manipulation</h6>
404
<pre><code class="lua">#s -- string length
405
"three "..4 -- string concatenation
406
-sub(str, from, [to]) -- substring</code></pre>
+sub(str, from, [to]) -- substring
407
+"123.45" + 0 -- convert string to a number
408
+ -- string must be parseable as a number
409
+ -- use "0xAF" format for hex numbers</code></pre>
410
411
<h6>special characters</h6>
412
<pre><code class="lua">print('l:\x8b r:\x91 u:\x94 d:\x83 o:\x8e x:\x97')</code></pre>
0 commit comments