Hello, Got a problem with teh round() function. Can someone help? The following code shows an error
$r=round(3456.225342,2) echo "r = $r";
: Wrong parameter count for round() in C:[path]\r.php3 on line 3
I'm using PHP 3.16 BTW
Thanks, red
Guess it's a 3.16 problem, it works fine in 4.0.2.
round function accepts only one parameter
so you can't really write round(3456.225342,2); you must only write(3456.225342);
or try this one:
$r=sprintf("%.2f",3456.225342);
$r = (double)($r);
echo $r;