SIDEBAR: Integer data types
Integer math gives the program a tremendous speed advantage over floating-point math on most computer systems, but it is not as easy to work with. Problems can arise with overflow, where a calculation yields a value too large to be represented in an integer. Overflow problems with moving averages are most likely to show up in long-period linear moving averages, where the total weighting can reach into the tens of thousands. Similarly, problems can occur when calculations produce results that are too small (for example, 0.5) to be held in an integer.