On 2011-02-27 19:29, IVP wrote: > Now, the first problem has arisen. Do I assume correctly that the > C function "floor" is similar to INT ? ie, the decimal part of a result > is discarded ? Not quite, it rounds negative numbers down to the next lower integer.=20 (e.g. truncating -1.5 would yield -1, the next HIGHER integer.=20 Floor(-1.5) =3D=3D -2). For positive numbers it should be the same. Joe Koberg --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .