From:             [EMAIL PROTECTED]
Operating system: i686-pc-linux-gnu
PHP version:      4.0CVS-2002-04-11
PHP Bug Type:     Variables related
Bug description:  ceil results -0

Hi,

the follow code results -0,

<?php
$a=ceil((1/16)-1);
echo $a;
?>

maybe, this is a convertion problem with float types.

also, why the ceil() command results a floating point number and not an
integer?
It makes sense when the ceil command accept a precision like round()...

Regards,

Steve
-- 
Edit bug report at http://bugs.php.net/?id=16551&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16551&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16551&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16551&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16551&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16551&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16551&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16551&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16551&r=submittedtwice

Reply via email to