File: round.txt

package info (click to toggle)
colobot 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 415,532 kB
  • sloc: cpp: 129,246; ansic: 8,872; python: 2,158; sh: 672; awk: 91; xml: 35; makefile: 31
file content (13 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
\b;Instruction \c;round\n;
Syntax:
\s;\c;round ( value );\n;
Rounds a number.

\t;value: \c;\l;float\u cbot\float;\n;
Number.

\t;Return value: \c;\l;float\u cbot\float;\n;
Rounded \c;value\n;. For example, \c;round(2.5)\n; is \c;3.0\n;, whereas \c;round(2.4)\n; is \c;2.0\n;.

\t;See also
\l;trunc\u cbot\trunc;, \l;floor\u cbot\floor;, \l;ceil\u cbot\ceil;, \l;programming\u cbot;, \l;types\u cbot\type; and \l;expressions\u cbot\expr;.