Jon Portnoy > Bot-Cobalt-Plugin-Calc-0.002 > Bot::Cobalt::Plugin::Calc

Download:
Bot-Cobalt-Plugin-Calc-0.002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.002   Source  

NAME ^

Bot::Cobalt::Plugin::Calc - Simple calculator for Bot::Cobalt

SYNOPSIS ^

  !calc (2+2)*(2+4)
  !calc 0xff
  !calc 0644

DESCRIPTION ^

Simple Bot::Cobalt calculator plugin using Parser::MGC.

Understands - + * / ^ operations.

Also understands hex and octal.

TODO ^

A RPN-style calculator with a persistent per-user stack is planned as sort of an IRC dc ... eventually.

AUTHOR ^

Jon Portnoy <avenj@cobaltirc.org>

http://www.cobaltirc.org

syntax highlighting: