Main About Download Schemes Documentation Resources

Data Types

Integer Data Type

The Integer data type is one of the most commonly used types in programming. An integer can store a positive or negative whole number, but can't store fractional values. So, it can store values such as 5, 42, 1947, but can't store numbers such as 3.2, 4.5, etc...

If a number with a fractional value is stored into a integer, the fractional value will be discarded. Hence, if  3.2 is stored into an integer, it will only retain 3.

The Variable Watch Window displays integers in blue.

Real Data Type

The Real data type can store any number - both whole numbers and ones with fractional values. In many languages, this is called a "double" after the implementation standard known as "double-precision floating point".

The Variable Watch Window displays reals in purple.

String Data Type

The String data type is used to store any textual data. This includes words, letters, or anything else you would send in a text message. In programming, the text is delimited with double quotes. For example: "CSU, Sacramento", "computer", and "Year 1947" are all strings.

The Variable Watch Window displays strings in red.

Boolean Data Type

The Boolean Data Type can store either "true" or "false". These are the basis of decision making in a computer program. 

The Variable Watch Window displays Booleans in teal.

Summary Chart

Data Type Notes
Boolean Stores either Boolean true or false
Real Stores a real number.
Integer Stores an integer number.
String Stores textual data.