Integer · Real · Boolean · Character · String · Casting
| Data Type | Description | Examples |
|---|---|---|
| Integer | Whole numbers (positive, negative, zero) | 42, -7, 0, 100 |
| Real | Numbers with a decimal point | 3.14, -0.5, 9.99 |
| Boolean | True or False only | True, False |
| Character | A single character (letter, digit, symbol) | 'A', '7', '!' |
| String | A sequence of zero or more characters | 'Hello', '42abc' |
| Function | Converts to | Example |
|---|---|---|
| INT(x) | Integer | INT('42') → 42 |
| REAL(x) | Real | REAL(3) → 3.0 |
| STR(x) | String | STR(85) → '85' |
| BOOL(x) | Boolean | BOOL(1) → True |