Difference between revisions of "ApCoCoA-1:Num.Ceil"

From ApCoCoAWiki
Line 37: Line 37:
  
 
<seealso>
 
<seealso>
  <see>Floor</see>
+
  <see>Num.Floor</see>
  <see>FPart</see>
+
  <see>Num.FPart</see>
 
  <see>PrintLn</see>
 
  <see>PrintLn</see>
 
</seealso>
 
</seealso>

Revision as of 13:20, 7 October 2009

Ceil

Maps a rational number to the next biggest integer.

Syntax

Num.Floor(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

Num.Floor

Num.FPart

PrintLn