From:             pawel1-81 at O2 dot PL
Operating system: WINDOWS XP HOME
PHP version:      5.2.3
PHP Bug Type:     *General Issues
Bug description:  Problem from multiplication

Description:
------------
Why for some values $ r ($r * 10000000) result on example 1015 be paid
back 1.015 E + 10 and for 2886 -> 28860000000
In previous version php all acts

Reproduce code:
---------------
<meta HTTP-EQUIV="Refresh" CONTENT="10;>

<?php
$function['min'] = 400;
$function['max'] = 4000;

$r = mt_rand($function['min'], $function['max']);

echo '<br>$r = '.$r
        
                .'<br>$r * 10000000 = '. ($r * 10000000)
        
                .'<br>$function["max"]* 10000000 = '. ($function['max']* 
10000000) 
        
                .'<br>4000 * 10000000 = '. (4000 * 10000000);
?>


-- 
Edit bug report at http://bugs.php.net/?id=41915&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41915&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41915&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41915&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41915&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41915&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41915&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41915&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41915&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41915&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41915&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41915&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41915&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41915&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41915&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41915&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41915&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41915&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41915&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41915&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41915&r=mysqlcfg

Reply via email to