RE: [PHP-WIN] Looking for something like floor() only to round to a nearest div isor
| From: | HKG) | Date: | Wed, 29 Jan 2003 09:19:35 +0000 |
| Subject: | RE: [PHP-WIN] Looking for something like floor() only to round to a nearest div isor | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18169@lists.php.net to get a copy of this message | ||
> Scratch that other one, came up with something quite a bit better for speed
> on large numbers:
This is the fastest way to do it: ((int)x/y) * y