in reply to Rounding function

You could also check How do I round a floating point number?

One other important thing to remember when rounding is that int just truncates anything past the decimal place off, so it doesn't really round. If you want it to work like a round do

int($num+0.5);


vroom | Tim Vroom | vroom@cs.hope.edu