Re: cvs: php-src /ext/standard/tests/math bug24142.phpt
| From: | Derick Rethans | Date: | Thu, 26 Jun 2003 05:31:09 +0000 |
| Subject: | Re: cvs: php-src /ext/standard/tests/math bug24142.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-22038@lists.php.net to get a copy of this message | ||
On Thu, 26 Jun 2003, Sterling Hughes wrote:
> sterling Wed Jun 25 23:21:45 2003 EDT
>
> Modified files:
> /php-src/ext/standard/tests/math bug24142.phpt
> Log:
> according to the notes in the bugs database, this is the correct result.
> this result is also the same one given in 4.3.2 and 5.0
Now it fails for me :) I think we just need to set precision too... I'll
have a look if I find the time.
Derick
>
>
> Index: php-src/ext/standard/tests/math/bug24142.phpt
> diff -u php-src/ext/standard/tests/math/bug24142.phpt:1.2
> php-src/ext/standard/tests/math/bug24142.phpt:1.3
> --- php-src/ext/standard/tests/math/bug24142.phpt:1.2 Mon Jun 16 15:59:27 2003
> +++ php-src/ext/standard/tests/math/bug24142.phpt Wed Jun 25 23:21:45 2003
> @@ -1,10 +1,10 @@
> --TEST--
> Bug #24142 (round() problems)
> --FILE--
> -<?php // $Id: bug24142.phpt,v 1.2 2003/06/16 19:59:27 sniper Exp $ vim600:syn=php
> +<?php // $Id: bug24142.phpt,v 1.3 2003/06/26 03:21:45 sterling Exp $ vim600:syn=php
> echo round(5.045, 2). "\n";
> echo round(5.055, 2). "\n";
> ?>
> --EXPECT--
> +5.04
> 5.05
> -5.06
>
>
>
>
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------