Add()

From TinyMUX
Jump to navigation Jump to search

Description

FUNCTION: 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.