</code></pre></div></div> <p>Exponentiation. Use as any other arithmetic operator, like <code class="language-plaintexthighlighter-rouge">5^(1/3)</code>. If exponent is an integer, you can use a negative base, otherwise you will get “NaN” with a negative base. If both arguments are integers, the result will be an integer.</p><hr/><h3id="abs"><ahref="#abs"class="anchor-heading"aria-labelledby="abs"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>abs</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="o">/</span><spanclass="kt">float</span><spanclass="n">abs</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="o">/</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Absolute (positive) value of x.</p><hr/><h3id="arctan"><ahref="#arctan"class="anchor-heading"aria-labelledby="arctan"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>arctan</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">arctan</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">,</span><spanclass="kt">float</span><spanclass="n">y</span><spanclass="p">)</span>
</code></pre></div></div><p>Arctangent of x. Pass 1 as y (don’t ask…).</p><hr/><h3id="ceil"><ahref="#ceil"class="anchor-heading"aria-labelledby="ceil"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>ceil</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="n">ceil</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="p">)</span>
</code></pre></div></div><p>Round x to the nearest integer that is not less than x.</p><hr/><h3id="cos"><ahref="#cos"class="anchor-heading"aria-labelledby="cos"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>cos</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">cos</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Cosine of x</p><hr/><h3id="div"><ahref="#div"class="anchor-heading"aria-labelledby="div"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>div</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="n">div</span><spanclass="p">(</span><spanclass="n">x</span><spanclass="p">,</span><spanclass="n">y</span><spanclass="p">)</span>
</code></pre></div></div><p>Unsigned integer division. Use as a division operator, like <codeclass="language-plaintext highlighter-rouge">3 + (20 div 5)</code>. If both dividend and divisor are integers, they will be treated as unsigned integers. If one of them is a float, div will perform the signed division just like vanilla division operator.</p><hr/><h3id="exponent"><ahref="#exponent"class="anchor-heading"aria-labelledby="exponent"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>exponent</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">exponent</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Works just like vanilla floor function, but returns correct integers for negative values (vanilla floor function works exactly the same as <codeclass="language-plaintext highlighter-rouge">ceil</code> for negative values, much like <codeclass="language-plaintext highlighter-rouge">trunc</code> in C/C++).</p><hr/><h3id="log"><ahref="#log"class="anchor-heading"aria-labelledby="log"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>log</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">log</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Natural logarithm of x.</p><hr/><h3id="round"><ahref="#round"class="anchor-heading"aria-labelledby="round"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>round</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="n">round</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Round x to the nearest integer.</p><hr/><h3id="sin"><ahref="#sin"class="anchor-heading"aria-labelledby="sin"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>sin</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">sin</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Sine of x</p><hr/><h3id="sqrt"><ahref="#sqrt"class="anchor-heading"aria-labelledby="sqrt"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>sqrt</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">sqrt</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Square root of x.</p><hr/><h3id="tan"><ahref="#tan"class="anchor-heading"aria-labelledby="tan"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>tan</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">float</span><spanclass="n">tan</span><spanclass="p">(</span><spanclass="kt">float</span><spanclass="n">x</span><spanclass="p">)</span>
</code></pre></div></div><p>Tangent of x</p></div></div><divclass="search-overlay"></div></div></body></html>