Older Newer
Thu, 27 Mar 2003 15:41:57 . . . . 195.92.244.188


Changes by last author:

Added:
= dif =

== Syntax ==

:int dif(int a, int b)

== Arguments ==

:a

::Any integer.

:b

::Any integer

== Return ==

:The absolute difference of the integers a and b.

== Description ==

:This function returns the absolute difference of the two arguments, and is equivalent to the function abs(a-b). (An absolute difference is computed by subracting one argument from the other and ignoring the sign of the result).

== Example ==

{{int p = dif(128,255); // sets 'p' to 127

== Also see ==

:abs

== Comments ==

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