Re: [PHP] Round



Koen van den Boogaart wrote:
Is it expected behaviour that

<?php var_dump( round(-0.26) ); ?>

outputs

float(-0)

What version of PHP are you running.

I'm running 5.1.6 and I get float(0)

--
Jim Lucas

"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare
.



Relevant Pages

  • Re: [PHP] PHP calling an ISAPI Extension
    ... infer is when you draw a conclusion based on what one already knows. ... "Jim Lucas" wrote in message ... > also can't expect people to rebuild PHP with the curl library just to ... >> "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] OOP in PHP
    ... superclass koneksi dipanggil ... Jim Lucas wrote: ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] OOP in PHP
    ... superclass koneksi dipanggil ... Jim Lucas wrote: ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] OOP in PHP
    ... A few missing pieces in your code. ... Jim Lucas ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] Required files not being parsed properly...
    ... end up just getting dumped to the browser as text.. ... Jim Lucas ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)