Float

From Game Editor

Revision as of 18:41, 25 November 2009 by Asmodeus (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

float is about like int. There is one difference, floats handle decimals. Example:

float A;
A = 1.7;

The value of A has been made to 1.7


float represents a floating-point variable of 7 digit precision. For higher precision, use a double, which also represents a floating-point with double precision.