Re: round up to float 0.00

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: round up to float 0.00
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3341@lists.php.net to get a copy of this message
> On Tue, 27 Jun 2000, Ben-Nes Michael wrote: > > > Hi > > > > how do i round float to two numbers after the dot ? > > 4.234 = 4.23 > > 5.689 = 5.69 > > check format_number() function. oops that's number_format() :-)) e.g. number_format(4.234, 2) -- Regards, -- Masood Nasir :-) [Systems Engineer] - http://www.masood.net ;) -- One Net, Lahore, Pakistan. <http://www.one.net.pk>

« previous php.general (#3341) next »