ccalc - Earthcomputer/clientcommands GitHub Wiki

A simple calculator. Evaluates mathematical expressions as a command argument.

Supports basic operations such as 2+2 or 34*64, as well as more advanced functions like abs(), floor(), or sqrt().

Displays the result in a chat message with its stack size(s).

Examples:

  • /ccalc 2+2 - 4 (duh)
  • /ccalc 227 - 227 = 3 * 64 + 35
  • /ccalc log(e) + ceil(23.4) - 24.4342...