2. Primitive data types
These are the primitive data types and a short description of what they are
Data type | Description | Example |
---|---|---|
Integer | Any whole number, including zero and negative whole numbers | 1 , 34, -2, -728229, 0 |
Real | Often referred to as 'float'. This is used to represent numbers with decimal points, both negative, zero and positive numbers | 1.0, -345.23, 1.3, 0.0, 0.234 |
Boolean | Used to represent binary logic | True or False |
Character | Single letter, symbol. digit or control code | B '2' % NUL |
String | A sequence of alphanumeric characters | 'This is a string' |
Challenge see if you can find out one extra fact on this topic that we haven't already told you
Click on this link: What are the primitive data types