Oh hang on, I've figured it out. Rounding error, doh. Somewhere along the line I got lazy and took the weighted average of two values that are equal. as.integer truncates, so, yeah. Never mind. Zhou Fang