click below
click below
Normal Size Small Size show me how
J277 2.2.2
Data Types
| Term | Definition |
|---|---|
| Integer | Data type used for positive and negative whole numbers e.g. 5, 10, –3 |
| Boolean | A data type that only stores one of two values e.g. True or False |
| String | Data type that can be used to store any combination of alphanumeric data |
| Float | Numerical data which contains decimal numbers e.g. 3.14 |
| Real | Numerical data which contains decimal numbers e.g. 3.14 |
| Character | A data type used for storing a single alphabetic or numeric character |
| Casting | Converting one data type to another e.g. int() |