From WikiChip
$cbrt identifier - mIRC
< mirc‎ | identifiers
Revision as of 07:13, 31 October 2022 by Maroonbells (talk | contribs) (Create content for new identifier)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$cbrt returns the cube root.

Details[edit]

Synopsis[edit]

$cbrt(N)

Parameters[edit]

  • N - Number for which the cube root is returned

Properties[edit]

None

Example[edit]

//bigfloat on | var %n $rand(2,999) | echo -a the cube root of %n is approximately $cbrt(%n) same as $calc(%n ^ (1/3)) $calc($cbrt(%n) ^ 3)

//bigfloat on | var %n $rand(2,999) | echo -a the cube root of %n is approximately $cbrt(%n) same as $calc(%n ^ (1/3)) cubed is $calc($cbrt(%n) ^ 3)

Compatibility[edit]

Added: mIRC v7.72
Added on: 27 Nov 2022
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]