Category:Math Functions

Revision as of 13:33, 5 July 2007 by imported>DragoonWraith (categorizing and fixing a link)

These functions provide advanced mathematical operations for use with numbers within scripts. This is in addition to +, -, *, /, and %, which are described in the Set article.

Because these are functions and not operators, they cannot accept expressions as arguments. That is, you cannot use this:

Function ( x + y )

You must instead use a variable to store the value and pass the variable:

set z to ( x + y )
Function z

In the case of OBSE functions, these functions may be used normally, including as a part of an experssion, like so:

set z to ( y + Function x )

In the case of the Stage Functions that may be used without OBSE, these are more complicated workarounds developed before OBSE. Please read the Stage Function article for more information.

Because of the different approaches to the same functions, rather than listing all of the functions in this category, please use the subcategories below to find the information that you are looking for.