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. "Richard Heyes" <richardh@xxxxxxxxxxx> wrote in message news:46D58ECC.8010602@xxxxxxxxxxxxxx > Koen van den Boogaart wrote: >> Is it expected behaviour that >> >> <?php var_dump( round(-0.26) ); ?> >> >> outputs >> >> float(-0) > > > Yes. You (probably) want: > > <?php > var_dump(round(-0.26, 1)); > ?> > > http://uk.php.net/manual/en/function.round.php > > -- > Richard Heyes > +44 (0)844 801 1072 > http://www.websupportsolutions.co.uk > > Knowledge Base and HelpDesk software > that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php