Older Newer
Thu, 27 Mar 2003 15:36:31 . . . . 195.92.244.188


Changes by last author:

Added:
= sub =

== Syntax ==

:int sub(int a, int b, int c)

== Arguments ==

:a

::Any integer.

:b

::Any integer.

:c

::Any integer.

== Return ==

:The higher value of (a-b) and c.

== Description ==

:This function subtracts 'b' from 'a', then compares the result with 'c' and returns the higher of the two values. This function has been retained for compatibility with Filter Factory; the function max(a-b,c) will give the same result and computes faster.

== Example ==

int p = sub(5,1,2); // sets 'p' to 4, because 5-1=4, and 4>2 !

== Also see ==

:add,max,min

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.