Add()

From TinyMUX
Revision as of 05:00, 17 January 2006 by Ian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

FUNCTION: 20px-Function.png add(number1[, numberN]...)

Returns the result of adding its arguments together. You may add up to 100 numbers in one add() call. numberN may be a floating-point number, and a floating-point result is returned.

Related Topics: dec(), fdiv(), iadd(), idiv(), imul(), inc(), isub(), mod(), mul(), sub().

Examples

> say add(2,4)
You say "6"
> say add(5,3,7,-4)
You say "11"

Server Differences

Other than differences related to general floating-point handling, the behavior of add() is the same across all servers.