forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabs.xml
More file actions
executable file
·43 lines (29 loc) · 890 Bytes
/
Copy pathabs.xml
File metadata and controls
executable file
·43 lines (29 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>abs()</name>
<category>Math</category>
<subcategory>Calculation</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
int a = abs(153); // Sets a to 153
int b = abs(-15); // Sets b to 15
float c = abs(12.234); // Sets c to 12.234
float d = abs(-9.23); // Sets d to 9.23
]]></code>
</example>
<description><![CDATA[Calculates the absolute value (magnitude) of a number. The absolute value of a number is always positive.]]></description>
<syntax><![CDATA[
abs(<kbd>value</kbd>)
]]></syntax>
<parameter>
<label>value</label>
<description><![CDATA[float or int]]></description>
</parameter>
<returns>float or int (depending on the input values)</returns>
<related></related>
<availability>1.0</availability>
<type>Function</type>
<partof>PDE</partof>
</root>