Re: [PHP] Round



On Wed, August 29, 2007 11:38 am, Zoltán Németh wrote:
2007. 08. 29, szerda keltezéssel 09.29-kor Jim Lucas ezt írta:
Daniel Brown wrote:
On 8/29/07, Richard Heyes <richardh@xxxxxxxxxxx> wrote:
Koen van den Boogaart wrote:
No, I want it to go to float(0), so minus the minus. "-0"
doesn't exist in
math, as far as I know. Probably a precision thing.

I missed the start of this thread...

Technically, -0 exists and is a tautology to +0.

That said, PHP should not be outputting -0 for a round() operation,
nor abs() for that matter.

Check http://bugs.php.net with your PHP version for a similar problem.

--
Please vote for this great band:
http://acl.mp3.com/feature/soundandjury/?band=COMPANY-OF-THIEVES

Requires email confirmation.
One vote per day per email limit.
Obvious ballot-stuffing will be revoked.
.



Relevant Pages

  • Re: [PHP] Round
    ... Strange ... Check http://bugs.php.net with your PHP version for a similar problem. ... Requires email confirmation. ... One vote per day per email limit. ...
    (php.general)
  • Re: [PHP] Pragmatically changing a "Record Number"
    ... The ID key field of a record should not have any explicit meaning. ... already off-topic for PHP, but they should have told you on the MySQL ... mistake can make a pig's breakfast of your entire database. ... One vote per day per email limit. ...
    (php.general)
  • Re: PHP Purpose (PHPP) -- largest thread ever
    ... The charter, culled from the vote result announcement: ... questions about PHP, ...
    (comp.lang.php)
  • Re: PHP Purpose (PHPP) -- largest thread ever
    ... > The charter, culled from the vote result announcement: ... > questions about PHP, ...
    (comp.lang.php)
  • Re: [PHP] Beware of round() function
    ... result in a failed transaction. ... In the examples below, assume that the value passed to round() is '1200000', so that the value returned from roundis '1.2E+6'. ... When interpolating the value into xml, resulting in an xsd validation error: ...
    (php.general)