Difference between revisions of "ApCoCoA-1:Num.Floor"
From ApCoCoAWiki
m (insert version info) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
− | <title>Floor</title> | + | <title>Num.Floor</title> |
<short_description>Maps a rational number to the next smallest integer.</short_description> | <short_description>Maps a rational number to the next smallest integer.</short_description> | ||
Line 37: | Line 38: | ||
<seealso> | <seealso> | ||
− | <see>Ceil</see> | + | <see>ApCoCoA-1:Num.Ceil|Num.Ceil</see> |
− | <see>FPart</see> | + | <see>ApCoCoA-1:Num.FPart|Num.FPart</see> |
− | <see>PrintLn</see> | + | <see>ApCoCoA-1:PrintLn|PrintLn</see> |
</seealso> | </seealso> | ||
<key>Floor</key> | <key>Floor</key> | ||
+ | <key>num.floor</key> | ||
+ | <key>numerical.floor</key> | ||
− | <wiki-category>Package_numerical</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_numerical</wiki-category> |
</command> | </command> |
Latest revision as of 10:28, 7 October 2020
This article is about a function from ApCoCoA-1. |
Num.Floor
Maps a rational number to the next smallest integer.
Syntax
Num.Floor(Num:RAT):INT
Description
Maps a rational number Num to the next smallest integer.
@param Num A rational number.
@return The next smallest integer.
Example
Num.Floor(8.1); Num.Floor(-8.1); Num.Floor(8); 8 ------------------------------- -9 ------------------------------- 8 -------------------------------
See also