Oops. In my "POM" (Phase Of the Moon) program I left off a cast. The line: Fraction = Phase / Length; should read: Fraction = (double)Phase / (double)Length; Thanks to mcvax!aeb.