Hi Am Die, 2003-09-09 um 16.06 schrieb Shaun: > Hi, > > I am dividing a number by another number and printing the result to the > screen. How can I ensure that the number is rounded up to 2 decimal places?
Use printf with format strings like printf("Value: %.2f", $value); http://php.net/manual/en/function.printf.php -- Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php