About floats too
| From: | Jari Kohvakka | Date: | Wed, 21 Jun 2000 07:25:30 +0000 |
| Subject: | About floats too | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2452@lists.php.net to get a copy of this message | ||
If I have a price, say 3.5423, how do I round it to 3.50? round() gives me
4.0 and (integer) 3. Any good manuals on this?
BTW: check this out (it's old but in case you've missed it)
http://www.helsinki.fi/~jkohvakk/php.html
Sorry for any copyright violations there, got it thru e-mail so dont know
who wrote it.
K
--
Jari Kohvakka | mobile : +358 50 567 25 87
Software Developer | phone : +358 9 612 623 40
http://www.adcore.com/ | jari.kohvakka@adcore.com
Adcore - Digital Business Creators | fax : +358 9 612 623 11