crates/sui-framework/docs/sui/math.md
DEPRECATED, use the each integer type's individual module instead, e.g. <code><a href="../std/u64.md#std_u64">std::u64</a></code>
maxmindiffpowsqrtsqrt_u128divide_and_round_up<a name="sui_math_max"></a>
maxDEPRECATED, use <code><a href="../std/u64.md#std_u64_max">std::u64::max</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_max">max</a>(x: u64, y: u64): u64 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_max">max</a>(x: u64, y: u64): u64 { x.<a href="../sui/math.md#sui_math_max">max</a>(y) } </code></pre> </details><a name="sui_math_min"></a>
minDEPRECATED, use <code><a href="../std/u64.md#std_u64_min">std::u64::min</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_min">min</a>(x: u64, y: u64): u64 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_min">min</a>(x: u64, y: u64): u64 { x.<a href="../sui/math.md#sui_math_min">min</a>(y) } </code></pre> </details><a name="sui_math_diff"></a>
diffDEPRECATED, use <code><a href="../std/u64.md#std_u64_diff">std::u64::diff</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_diff">diff</a>(x: u64, y: u64): u64 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_diff">diff</a>(x: u64, y: u64): u64 { x.<a href="../sui/math.md#sui_math_diff">diff</a>(y) } </code></pre> </details><a name="sui_math_pow"></a>
powDEPRECATED, use <code><a href="../std/u64.md#std_u64_pow">std::u64::pow</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_pow">pow</a>(base: u64, exponent: u8): u64 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_pow">pow</a>(base: u64, exponent: u8): u64 { base.<a href="../sui/math.md#sui_math_pow">pow</a>(exponent) } </code></pre> </details><a name="sui_math_sqrt"></a>
sqrtDEPRECATED, use <code><a href="../std/u64.md#std_u64_sqrt">std::u64::sqrt</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_sqrt">sqrt</a>(x: u64): u64 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_sqrt">sqrt</a>(x: u64): u64 { x.<a href="../sui/math.md#sui_math_sqrt">sqrt</a>() } </code></pre> </details><a name="sui_math_sqrt_u128"></a>
sqrt_u128DEPRECATED, use <code><a href="../std/u128.md#std_u128_sqrt">std::u128::sqrt</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_sqrt_u128">sqrt_u128</a>(x: u128): u128 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_sqrt_u128">sqrt_u128</a>(x: u128): u128 { x.<a href="../sui/math.md#sui_math_sqrt">sqrt</a>() } </code></pre> </details><a name="sui_math_divide_and_round_up"></a>
divide_and_round_upDEPRECATED, use <code><a href="../std/u64.md#std_u64_divide_and_round_up">std::u64::divide_and_round_up</a></code> instead
<pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_divide_and_round_up">divide_and_round_up</a>(x: u64, y: u64): u64 </code></pre> <details> <summary>Implementation</summary> <pre><code><b>public</b> <b>fun</b> <a href="../sui/math.md#sui_math_divide_and_round_up">divide_and_round_up</a>(x: u64, y: u64): u64 { x.<a href="../sui/math.md#sui_math_divide_and_round_up">divide_and_round_up</a>(y) } </code></pre> </details>