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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php