- This wiki is out of date, use the continuation of this wiki instead
Abs
From FenixWiki
(Difference between revisions)
Revision as of 14:27, 27 May 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Current revision (14:22, 1 March 2008) (edit) (undo) Sandman (Talk | contribs) m |
||
(One intermediate revision not shown.) | |||
Line 1: | Line 1: | ||
[[Category:functions]] | [[Category:functions]] | ||
- | [[Category: | + | [[Category:math]] |
==Definition== | ==Definition== | ||
Line 17: | Line 17: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
- | Program absolutely; | ||
Global | Global | ||
float value1; | float value1; | ||
int value2; | int value2; | ||
+ | End | ||
+ | |||
+ | Process Main() | ||
Begin | Begin | ||
Line 31: | Line 33: | ||
Repeat | Repeat | ||
frame; | frame; | ||
- | Until(key( | + | Until(key(_ESC)) |
End | End | ||
</pre> | </pre> | ||
- | Used in example: [[write_float]](), [[write_int]](), [[key]]() | + | Used in example: [[write_float]](), [[write_int]](), [[abs]](), [[key]]() |
+ | |||
+ | {{Funcbox | ||
+ | | category = Math | ||
+ | }} |
Current revision
Contents |
[edit] Definition
FLOAT abs ( <FLOAT value> )
Returns the absolute value of value.
[edit] Parameters
FLOAT value | - The value. |
[edit] Returns
FLOAT : The absolute value of value.
[edit] Example
Global float value1; int value2; End Process Main() Begin write_float(0,0, 0,0,&value1); write_int(0,0,10,0,&value2); value1 = abs(3); value2 = abs(-4); Repeat frame; Until(key(_ESC)) End
Used in example: write_float(), write_int(), abs(), key()
Math Functions | |
• Abs() • Acos() • Asin() • Atan() • Cos() • Fget_angle() • Fget_dist() • Get_distx() • Get_disty() • Pow() • Rand() • Rand_seed() • Sin() • Sqrt() • Tan() • |