Sub()

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

Description

FUNCTION: sub(number1, number2)

Returns the result of subtracting number2 from number1. The numbers may be floating-point numbers, and a floating-point result is returned.

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

Examples

> say sub(5,2)
You say "3"

Server Differences

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