Bug #3439: Round not rounding .5s properly
| From: | ijones at mbcomp dot co dot uk | Date: | Wed, 09 Feb 2000 16:40:14 +0000 |
| Subject: | Bug #3439: Round not rounding .5s properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15333@lists.php.net to get a copy of this message | ||
From: ijones@mbcomp.co.uk
Operating system: Redhat 6.0
PHP version: 3.0.14
PHP Bug Type: Misbehaving function
Bug description: Round not rounding .5s properly
the round command rounds down fractions that are .5 instead of rounding them up....eg
echo round(2.6);
3
echo round(2.5);
2