ApCoCoA-1:Num.Ceil: Difference between revisions

From ApCoCoAWiki
Jan (talk | contribs)
Added Ceil command
 
m insert version info
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Version|1}}
<command>
<command>
<title>Ceil</title>
<title>Num.Ceil</title>
<short_description>Maps a rational number to the next biggest integer.</short_description>
<short_description>Maps a rational number to the next biggest integer.</short_description>


<syntax>
<syntax>
Num.Floor(Num:RAT):INT
Num.Ceil(Num:RAT):INT
</syntax>
</syntax>


Line 16: Line 17:


<example>
<example>
Num.Ceil(8.1);
Num.Ceil(8.1);
Num.Ceil(-8.1);
Num.Ceil(-8.1);
Line 26: Line 26:
8
8
-------------------------------
-------------------------------
</example>
</example>


Line 37: Line 36:


<seealso>
<seealso>
  <see>Floor</see>
  <see>ApCoCoA-1:Num.Floor|Num.Floor</see>
  <see>FPart</see>
  <see>ApCoCoA-1:Num.FPart|Num.FPart</see>
  <see>PrintLn</see>
  <see>ApCoCoA-1:PrintLn|PrintLn</see>
</seealso>
</seealso>


<key>Ceil</key>
<key>Ceil</key>
<key>num.ceil</key>
<key>numerical.ceil</key>


 
<wiki-category>ApCoCoA-1:Package_numerical</wiki-category>
[[Category:ApCoCoA Manual|{{PAGENAME}}]]
</command>
</command>

Latest revision as of 10:27, 7 October 2020

This article is about a function from ApCoCoA-1.

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

Num.Floor

Num.FPart

PrintLn