Re: what is quicker...
| From: | Mark Charette | Date: | Fri, 16 Feb 2001 03:02:19 +0000 |
| Subject: | Re: what is quicker... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40063@lists.php.net to get a copy of this message | ||
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" <bojan@inet.co.yu>
To: <php-general@lists.php.net>
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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>