The limits of int and double
An int lives in 4 bytes, so past `Integer.MAX_VALUE` it wraps round to a negative number, and a double keeps only so many digits, so `0.1 + 0.2` is not exactly `0.3`.
From AP Computer Science A.
An int lives in 4 bytes, so past `Integer.MAX_VALUE` it wraps round to a negative number, and a double keeps only so many digits, so `0.1 + 0.2` is not exactly `0.3`.
From AP Computer Science A.