Difference between revisions of "ApCoCoA-1:Num.Ceil"
From ApCoCoAWiki
Line 4: | Line 4: | ||
<syntax> | <syntax> | ||
− | Num. | + | Num.Ceil(Num:RAT):INT |
</syntax> | </syntax> | ||
Line 16: | Line 16: | ||
<example> | <example> | ||
− | |||
Num.Ceil(8.1); | Num.Ceil(8.1); | ||
Num.Ceil(-8.1); | Num.Ceil(-8.1); | ||
Line 26: | Line 25: | ||
8 | 8 | ||
------------------------------- | ------------------------------- | ||
− | |||
</example> | </example> | ||
Line 43: | Line 41: | ||
<key>Ceil</key> | <key>Ceil</key> | ||
+ | <key>num.ceil</key> | ||
+ | <key>numerical.ceil</key> | ||
<wiki-category>Package_numerical</wiki-category> | <wiki-category>Package_numerical</wiki-category> | ||
</command> | </command> |
Revision as of 16:39, 14 October 2009
Ceil
Maps a rational number to the next biggest integer.
Syntax
Num.Ceil(Num:RAT):INT
Description
Maps a rational number Num to the next biggest integer.
@param Num A rational number.
@return The next biggest integer.
Example
Num.Ceil(8.1); Num.Ceil(-8.1); Num.Ceil(8); 9 ------------------------------- -8 ------------------------------- 8 -------------------------------
See also