Numeric types
Integer
Integer, often abbreviated as int, are used as "simple" numbers.
Float
Float values are used when we need real numbers, which means with negative and decimal values. For example, 3.141, -1.2345, etc.
Resources
- floating-point-gui.de – Explanations on floating point errors
- float.exposed – Visual sandbox for float bit notation