Free Pascal Links
Free Pascal
Free Pascal Wiki
Lazarus IDE
Lazarus Forum
forum.lazarus.freepascal.org/index.php?action=forum
Projects Using Lazarus
wiki.freepascal.org/Projects_using_Lazarus
This tutorial will cover data types. The data types that are most common are the integer, real (floating point), string, char, and Boolean. There are several other data types that are built into Free Pascal. The data type list is found in the documentation on Free Pascal's Website: www.freepascal.org.
Common Data Types That Should be Known
Integer - It is a whole number. Its range varies by system. For example in Windows the integer’s range is -2147483648 to 2147483647.
Real - Real is a floating point number. Its range varies by system. For example, in Windows, real’s range is 5.0E - 324 to 1.7E 308.
String - String is text.
Char - Char is a single text character. For example: a, B, &, @, l, and 4.
Boolean - A Boolean variable is either TRUE or FALSE
The Syntax For a Variable
name_of_variable:data_type;
To create a variable, place the word var between the uses section and begin (program section).
Examples
var
name:string;
num1:integer;
num2:integer;
total:real;
Code Download
FPProgT3.zip
Free Pascal
Free Pascal Wiki
Lazarus IDE
Lazarus Forum
forum.lazarus.freepascal.org/index.php?action=forum
Projects Using Lazarus
wiki.freepascal.org/Projects_using_Lazarus