in reply to Simple Rounding

You probably want to use sprintf:

$foo = 1100.64686081907; $bar = sprintf("%.2f", $foo);

Now $bar will contain 1100.65

Update: changed variable names from $a, $b to $foo, $bar for the first are "special" globals (thanks for the warning, davido)

--
b10m

All code is usually tested, but rarely trusted.