Number

From Bohemia Interactive Community
Revision as of 02:29, 2 June 2009 by General Barron (talk | contribs) (degrees go up to just before 360, not 359)
Jump to navigation Jump to search

Number Type

A real number, i.e. 1, -25, 6.52, 1805.6352

Degrees

Degrees are a poetic licence used to indicate a number returned from functions like acos and asin

It's special properties are that it will always supply a value from 0 to 360

Radians

Another poetic licence for a Number. Used in angular math computations with commands like rad and deg

Scripting vs Addons

Integers and Floats

Note that unlike config.cpp's (addons), a Number in scripting language is ANY numeric entity. Floats, or integers. It is NOT the same as a config's Integer or Float. Number covers both types.

Booleans

Note also, unlike config.cpp's, Boolean is a real type in scripting language. In addons, it is a poetic licence for a zero/non zero Integer