#round $num to 2 decimal places $rounded = int(0.5+$num*100)/100;