This code works fine with PHP 4.0.5 on Win.
<?php
srand (microtime());
for ( $i = 0; $i < 1000 ; $i++)
{
$BLAH = rand() / 100;
echo round($BLAH, 2), '<br>';
}
?>
----- Original Message -----
From: "Chad Day" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: 2001. június 27. 17:27
Subject: RE: [PHP] problems with round ..
> Yes, it is. I've tried it on a couple different php4 servers, I've never
> gotten it to work.
>
> Chad
>
> -----Original Message-----
> From: CC Zona [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 8:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] problems with round ..
>
>
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] ("Chad Day") wrote:
>
> > $BLAH = round($BLAH, 2);
> >
> > Spits out a wrong parameter error. I've tried quotes around the variable,
> > the parameter, and any combinations, but it still pukes on me. Why can't
> I
> > specify a precision?
>
> According to the manual, the second parameter is only available in PHP4--is
> that what you're using?
>
> --
> CC
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]