mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
64 lines
1022 B
XML
64 lines
1022 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>min()</name>
|
|
|
|
<category>Math</category>
|
|
|
|
<subcategory>Calculation</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int d = min(5, 9); // Sets "d" to 5
|
|
int e = min(-4, -12); // Sets "e" to -12
|
|
float f = min(12.3, 230.24); // Sets "f" to 12.3
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Determines the smallest value in a sequence of numbers.
|
|
</description>
|
|
|
|
<syntax>
|
|
min(<c>value1</c>, <c>value2</c>)
|
|
min(<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>
|
|
max()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|