Perhaps you're making the (incorrect) assumption that the result of rint() for half-integers is defined by the standard. dave...