>> C function "floor" is similar to INT ? > For positive numbers it should be the same. That's what I was thinking at the time I wrote (did see the -ve adjustment in the Wiki examples) So, if the numbers and method are correct, why the incorrect result ? Joe --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .