For Programmers: Free Programming Magazines  


Home > Archive > PHP Questions and Answers > April 2007 > Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev
Tijnema !

2007-04-16, 7:57 am

On 4/16/07, Antony Dovgal <antony@zend.com> wrote:
> On 04/15/2007 11:05 AM, Sebastian Nohn wrote:
>
> Nice catch, thanks.
>
> What do you think is the most correct output for 1 000 000 000 000 000 (with precision = 14)?
> Versions <= 5.2.1 output "1E+15", 5.2.2 says "1.0E+15".
>
> Both options looks ok to me, but we need to decide which one is the best.
> I can find pros/cons for both options myself and it doesn't matter for me which one is chosen, though somebody might.
> I remember asking people on the channel and the most popular answer was "both are legal and look ok".
>
> Opinions?
>
> --
> Wbr,
> Antony Dovgal


The second one "1.0E+15" is more precise, as it has the extra 0. Other
than that there's no big difference between them. But because it was
in 5.2.1 and before, it might be better to choose the first one.

Tijnema
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com