Zohar Kelrich wrote: $f < int $f+.5 ? int $f+1 : int $f This code snippet is just the conventional round() function. It can be written more simply as: int($x + 0.5) Jason Elbaum Freescale Semiconductor