ID: 41915
Updated by: [EMAIL PROTECTED]
Reported By: pawel1-81 at O2 dot PL
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: WINDOWS XP HOME
PHP Version: 5.2.3
New Comment:
Expected behaviour, there is nothing wrong here.
To output a float, use printf()/number_format() and other functions.
Previous Comments:
------------------------------------------------------------------------
[2007-07-06 10:53:57] pawel1-81 at O2 dot PL
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 this bug report at http://bugs.php.net/?id=41915&edit=1