Overflow and underflow Integers overflow at about 2 billion Twice.cc Twice2.cc Floats Float2.cc (overflow) Float3.cc (underflow) Float4.cc (inaccurate arithmetic) Doubles Double.cc Lessons Arithmetic is not perfect Always use doubles Never use == with real numbers