Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
functions [2019/12/09 20:54] – [Calling overloaded functions] neils | functions [2019/12/12 19:35] (current) – [Functions] neils | ||
---|---|---|---|
Line 7: | Line 7: | ||
* Several built-in functions | * Several built-in functions | ||
* The [[USR|USR() function]] to call a machine language function | * The [[USR|USR() function]] to call a machine language function | ||
- | * User-defined functions (since version 2.2) | + | * [[fun|User-defined functions]] (since version 2.2) |
===== Calling overloaded functions ===== | ===== Calling overloaded functions ===== | ||
- | Some functions are overloaded and thus they may return values of miscellaneous types. When calling a function, you must explicitly specify which type you wish to call by appending the right [[https:// | + | Some of the built-in |
myInt = abs(-5) | myInt = abs(-5) | ||
Line 23: | Line 23: | ||
myRandomFloat% = rnd%() | myRandomFloat% = rnd%() | ||
| | ||
+ | Note: user defined functions may not be overloaded. | ||
+ | ===== Defining user functions ===== | ||
- | ===== Defining functions ===== | + | Please refer to the [[fun|FUN ... ENDFUN]] directive for details. |
- | + | ||
- | Please refer to the FUN ... ENDFUN directive for details. | + |