You shouldn't have to add the .5 to your sample case, it should work as is. I have had similar problems with programs. A set of subroutines work fine everyplace, but on our IRIS. I avoid doing ANY calculations on our IRIS that require any accuracy.