Re: Setprecision ?? pls help

From: Date: Mon, 24 Mar 2003 12:25:37 +0000
Subject: Re: Setprecision ?? pls help
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140836@lists.php.net to get a copy of this message
You could have also used sprintf, which can be called from C++ as well. Josh. On March 24, 2003 07:18 am, Marek Kilimajer wrote: > number_format > > Adriaan Nel wrote: > >Hi all, > > > >I'v got the following: > > > >round ($val1,4); > > > >echo "$val1"; > > > >It works fine, but when $val which is a float, contains for instance 1.1 I > >want it to output 1.1000 instead of just 1.1 > > > >I know in C++ this can be done with setprecision(), but I can't seem to > > find anything similar in php....please help > > > >Thanks ppl > > > >njoy ur day

« previous php.general (#140836) next »