Example:
!calc 3.14159 * (2 ^ %x % 3) - ($ticks / (10000 + 1)) 3.14159 * (2 ^ %x % 3) - ($ticks / (10000 + 1)) = 3.14159 !calc help !calc help -^MARTYNI^- Help For !calc -^MARTYNI^- Returns the result of the specified operations. This identifiers allows you to perform multiple operations easily. For example: -^MARTYNI^- !calc 3.14159 * (2 ^ % 3) - ($ticks / (10000 + 1)) -^MARTYNI^- Give the answer: 3.14159 ```mirc ; Created by Martyni Productions ; http://www.martynip.co.cc ; irc.geekshed.net/martyni on *:text:!calc *:#: { if (HELP isin $2) { notice $nick Help For !calc notice $nick Returns the result of the specified operations. This identifiers allows you to perform multiple operations easily. For example: notice $nick !calc 3.14159 * (2 ^ %x % 3) - ($ticks / (10000 + 1)) notice $nick Give the answer: 3.14159 } else { %ans [ $+ [ $nick ] ] = $calc($2-) msg BotServ SAY $chan $nick: $2- = %ans [ $+ [ $nick ] ] unset %ans [ $+ [ $nick ] ] } } ```