RE: [PHP-DB] number formatting
| From: | Ben Cairns | Date: | Wed, 14 Feb 2001 15:19:16 +0000 |
| Subject: | RE: [PHP-DB] number formatting | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6615@lists.php.net to get a copy of this message | ||
Say, you get the result into a variable called $foo
You could use:
floor($foo);
this would round it DOWN to a whole number:
EG
2.1 returns 2
2.9 returns 2
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: BenC@intasept.com
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK......"