[EMAIL PROTECTED] wrote:
>  ID:               41401
>  Updated by:       [EMAIL PROTECTED]
>  Reported By:      drlippman at yahoo dot com
> -Status:           Open
> +Status:           Bogus
>  Bug Type:         Math related
>  Operating System: Windows, Linux
>  PHP Version:      4.4.7
>  New Comment:
> 
> [2007-05-15 15:44:07] drlippman at yahoo dot com
> 
> Description:
> ------------
> Left-to-right order of operations does not appear to be honored when
> dividing by a negative
> 
> Reproduce code:
> ---------------
> 1/-2*5
> 
> Expected result:
> ----------------
> -2.5
> 
> Actual result:
> --------------
> -.1

Should all these three examples give the same result?

$ php -r 'var_dump(-1/2*5, 1/-2*5, 1/2*-5);'
float(-2.5)
float(-0.1)
float(-2.5)



Regards,
-- 
Michael

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

Reply via email to