Integer
A whole number with no fractional part - positive, negative, or zero.
- Closed under +, −, × but not ÷.
- Python: int (unlimited precision), NumPy: int32/int64.
- Integer division (//) drops the decimal part.
When to use: Counts, indices, batch sizes, epoch numbers, class labels.
Example: Number of epochs = 10. Correct predictions = 87 out of 100. Pixel coords = (340, 215).