mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
52 lines
686 B
XML
52 lines
686 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>floor()</name>
|
|
|
|
<category>Math</category>
|
|
|
|
<subcategory>Calculation</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
float x = 2.88;
|
|
float a = floor(x); // Set "a" to 2.0
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Calculates the closest value that is less than or equal to the value of the parameter.
|
|
</description>
|
|
|
|
<syntax>
|
|
floor(<c>value</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>value</label>
|
|
<description>float</description>
|
|
</parameter>
|
|
|
|
<returns>float</returns>
|
|
|
|
<related>
|
|
ceil()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|