And why, pray tell, son't you determine the quicker of the 1st 2
empirically? It's not very hard to roll & time a loop ... and then you won't
have 10 different people guessing the answer.
Mark C.
"When the unknown is thought to be unknowable, gaps in knowledge are too
readily filled by fancy, so long as the fancy is consistent with faith." --
Sherwin B. Newland, M.D., "The Mysteries Within".
----- Original Message -----
From: "Bojan Gajic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 9:11 PM
Subject: [PHP] what is quicker...
> I have to detect wheater some number can be divided with 100.
> About 4M times per day.
> So, what is quicker:
> 1. if($num==fun($num/100)), where fun is round/ceil/floor, or
> 2. if($num%100), or
> 3. something else...
>
> $num is int, of course
> TIA
> bojan
>
>
> --
> 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]