Isub(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
Ian (talk | contribs)
No edit summary
 
(No difference)

Latest revision as of 05:05, 17 January 2006

Description

FUNCTION: isub(number1, number2)

Returns the result of subtracting integer number2 from integer number1. Similar to sub() except that the addition is done with 64-bit integer math (on both 32-bit and 64-bit platforms).

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

Examples

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

Server Differences

TinyMUX is the only server to support this function. However, sub() is a somewhat slower equilvalent for numbers up to 56-bits.