Colobot Wiki
Advertisement

Use this type for most variables that contains numbers. Variables of this type can contain positive and negative numbers, whole or real numbers, for example:

	12.9
	1.125
	0.002
	-4.1

If you need only whole numbers (f. ex. 12 or -5000), you should rather use the type int.

Attention[]

Do not insert space or colon characters into a number. To separate the whole part from the fractional part, use a dot. 

Write       and not
12.56       12 . 56
-54.34       -54,34
12895.69    12,895.69


For specialists[]

Floating point numbers are represented in Colobot with 32 bits.

The highest value that can be represented is 3.4E+38.

The smallest value that can be represented is 3.4E-38.

Advertisement