← All packages

simple-arithmetic-function

Math Expression Evaluator

Download .mpackage
Version
1
Author
hempa
Created
14 Feb 2010
Updated
8 Feb 2025

Install from Mudlet's command line

mpkg install simple-arithmetic-function

Mudlet 4.20+ with mpkg installed

Or drag it in

Drag into MudletDrop it on the main window

Mudlet 4.11+ · click to download instead

Description

The doMath function is a Lua utility that evaluates mathematical expressions, supporting standard arithmetic operations like addition, subtraction, multiplication, division, and exponentiation. It can optionally display the calculation result or return the evaluated value, and requires the LPeg library for parsing mathematical expressions. The function allows users to perform complex math calculations with a simple, flexible syntax that mimics standard mathematical notation.


This package was originally shared on the Mudlet Forums by the author. We’ve automatically listed it here on packages.mudlet.org so more users can discover and benefit from it. Please let us know if you have any questions or concerns - thanks for contributing to the Mudlet community!

The package XML could not be parsed, so only its files are listed.

Files (2)

16 KB unpacked

Select a script or file on the left to preview it here.