colobot-data/help/cbot/E/ceil.txt

14 lines
408 B
Plaintext

\b;Instruction \c;ceil\n;
Syntax:
\s;\c;ceil ( value );\n;
Rounds up a number.
\t;value: \c;\l;float\u cbot\float;\n;
Number.
\t;Return value: \c;\l;float\u cbot\float;\n;
Ceiling of the value, i.e. the smallest integer not less than \c;value\n;. For example, \c;ceil(2.1)\n; is \c;3.0\n;.
\t;See also
\l;round\u cbot\round;, \l;programming\u cbot;, \l;types\u cbot\type; and \l;expressions\u cbot\expr;.