| Type | float | ||
| Dimension | 32 bit (4 byte) | ||
| Domain | set of 232 positive and | Minimum absolute value | 1.4012985 . 10-38 |
| negative real numbers | Maximum absolute value | 3.4028235 . 10+38 | |
| Precision | |||
| Operations | + | sum | |
| - | difference | ||
| * | product | ||
| / | division | ||
| Literals | sequences of digits with decimal dot ending with an f (or F) | ||
| denoting values of the domain (e.g., 3.14f) | |||
| representation in scientific notation (e.g., 314E-2f) | |||
Example:
float pi, a, b; // Declaration of variables of type float pi = 3.14f; // Use of literals a = 314E-2F // Use of literals a++; // Use of increment operator (equivalent to: a = a + 1.0d;)