Re: About floats too

From: Date: Wed, 21 Jun 2000 07:28:13 +0000
Subject: Re: About floats too
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2453@lists.php.net to get a copy of this message
On 21 Jun, Jari Kohvakka wrote: > If I have a price, say 3.5423, how do I round it to 3.50? round() gives me > 4.0 and (integer) 3. Any good manuals on this? > One of printf, sprintf and number_format should do what you want. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#2453) next »