From:             erlendkb at online dot no
Operating system: Windows XP
PHP version:      5.0.0b1 (beta1)
PHP Bug Type:     *Math Functions
Bug description:  Different result of round()

Description:
------------
This script gives different results in PHP4 (PHP 4.3.2) og PHP5 (5.0.0
BETA 1)

Reproduce code:
---------------
<?php

$end =   date ("U", mktime (11, 00, 0, 7, 4, 2003));
$start = date ("U", mktime (8, 35, 0, 1, 11, 2003));

$hanne = $end - $start;

echo round ($hanne/3600, 2);

?>

Expected result:
----------------
PHP4:
4177.42

PHP5:
4177.41

Actual result:
--------------
...

-- 
Edit bug report at http://bugs.php.net/?id=24508&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24508&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24508&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24508&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24508&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24508&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24508&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24508&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24508&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24508&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24508&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24508&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24508&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24508&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24508&r=gnused

Reply via email to