2010-08-22 13:13:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
<!DOCTYPE funcs
|
|
|
|
SYSTEM '../../../clonk.dtd'>
|
2009-05-09 13:11:51 +00:00
|
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
|
|
<funcs>
|
2010-08-22 13:13:17 +00:00
|
|
|
<func>
|
|
|
|
<title>Abs</title>
|
|
|
|
<category>Arithmetics</category>
|
2011-06-30 10:52:55 +00:00
|
|
|
<version>5.1 OC</version>
|
2010-08-22 13:13:17 +00:00
|
|
|
<syntax>
|
|
|
|
<rtype>int</rtype>
|
|
|
|
<params>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>value</name>
|
|
|
|
<desc>Absolute coordinate you want to convert to a relative coordinate.</desc>
|
|
|
|
</param>
|
|
|
|
</params>
|
|
|
|
</syntax>
|
|
|
|
<desc>Returns the absolute value of the given parameter, ignoring the sign of the value.</desc>
|
|
|
|
<examples>
|
|
|
|
<example>
|
2011-07-03 02:01:19 +00:00
|
|
|
<code>Abs(-12) == Abs(12) == 12</code>
|
2011-07-30 23:32:02 +00:00
|
|
|
<text>This expression is <code>true</code>.</text>
|
2010-08-22 13:13:17 +00:00
|
|
|
</example>
|
|
|
|
</examples>
|
|
|
|
</func>
|
|
|
|
<author>Sven2</author><date>2001-11</date>
|
2009-05-09 13:11:51 +00:00
|
|
|
</funcs>
|