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