Table of Contents
Datatypes
What are datatypes?
Data types are used within type systems, which offer various ways of defining, implementing, and using them. Different type systems ensure varying degrees of type safety.
Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology.
Common data types include:
- Integer
- Floating-point number
- Character
- String
- Boolean
Datatypes in Enfusion
void
void data type. A data type that has no values or operators and is used to represent nothing.
string
In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable.
Example:
string greeting = "Hello"
int
The INTEGER data type stores whole numbers that range from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision.
Example:
int counter = 1
float
In computer science, a float is a data type composed of a number that is not an integer, because it includes a fraction represented in decimal format.
The FLOAT data type stores double-precision floating-point numbers with up to 17 significant digits. FLOAT corresponds to IEEE 4-byte floating-point, and to the double data type in C. The range of values for the FLOAT data type is the same as the range of the C double data type on your computer.
float speed = 1.12346
vector
Vectors are sequence containers representing arrays that can change in size.
Just like arrays, vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to its elements, and just as efficiently as in arrays. But unlike arrays, their size can change dynamically, with their storage being handled automatically by the container.
Example:
vector direction = {0,0,1};
RestContext
returned data from a httpREST request. See: restapi
GameMaterial
IEntity
represents a entity.