mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
64 lines
1022 B
XML
64 lines
1022 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>max()</name>
|
|
|
|
<category>Math</category>
|
|
|
|
<subcategory>Calculation</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int a = max(5, 9); // Sets "a" to 9
|
|
int b = max(-4, -12); // Sets "b" to -4
|
|
float c = max(12.3, 230.24); // Sets "c" to 230.24
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Determines the largest value in a sequence of numbers.
|
|
</description>
|
|
|
|
<syntax>
|
|
max(<c>value1</c>, <c>value2</c>)
|
|
max(<c>value1</c>, <c>value2</c>, <c>value 3</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>value1</label>
|
|
<description>int or float</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>value2</label>
|
|
<description>int or float</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>value3</label>
|
|
<description>int or float</description>
|
|
</parameter>
|
|
|
|
<returns>int or float (depending on the inputs)</returns>
|
|
|
|
<related>
|
|
min()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|