Skip to content

Supybot Website

Sections
Personal tools
You are here: Home » Documentation » Official Plugins Documentation » Math

Math

Document Actions

Documentation for the Math plugin for Supybot

Purpose

Various math-related commands.

Commands

  • base <fromBase> [<toBase>] <number>

    Converts <number> from base <fromBase> to base <toBase>. If <toBase> is left out, it converts to decimal.

  • calc <math expression>

    Returns the value of the evaluated <math expression>. The syntax is Python syntax; the type of arithmetic is floating point. Floating point arithmetic is used in order to prevent a user from being able to crash to the bot with something like 10**10**10**10. One consequence is that large values such as 10**24 might not be exact.

  • convert [<number>] <unit> to <other unit>

    Converts from <unit> to <other unit>. If number isn't given, it defaults to 1. For unit information, see units command.

  • icalc <math expression>

    This is the same as the calc command except that it allows integer math, and can thus cause the bot to suck up CPU. Hence it requires the trusted capability to use.

  • rpn <rpn math expression>

    Returns the value of an RPN expression.

  • units [<type>]

    With no arguments, returns a list of measurement types, which can be passed as arguments. When called with a type as an argument, returns the units of that type.

Configuration

  • supybot.plugins.Math.public

    This config variable defaults to True and is not channel specific.

    Determines whether this plugin is publicly visible.

Created by jamessan
Last modified 19:16 July 25, 2005
News
Oops!
Jun 29, 2007 @ 16:24
We need a Supybot logo!
Jan 18, 2005 @ 03:59
Recent Plugin Releases
IdleRPG 1.1.2
Jun 13, 2008 @ 04:34
QGoogle 0.2.0
Apr 30, 2008 @ 12:13
QGoogle 0.1-r1
Apr 27, 2008 @ 08:25
Ompload 1.0
Apr 11, 2008 @ 22:08
Bunneh 1.0
Mar 21, 2008 @ 21:50
 
 

Powered by Plone

This site conforms to the following standards: