ApCoCoA-1:Num.Floor

From ApCoCoAWiki
Revision as of 12:38, 7 October 2009 by 132.231.10.62 (talk) (Added Floor command)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Ceil

FPart

PrintLn