how about using round()? take a better look att http://www.php.net manual: they have everything documented round ($var1+$var2, 2);