Posted by:
christophe charron
(---.w86-216.abo.wanadoo.fr)
Hi,
I 've got a very "funny" thing with last WAMP5
When trying to multiply 8100 by or 8200 by 1000 the result is displayed in scientific notation. Why not if it was for all values ... But when I try the same operations with 8099 or 8201, I obtain a "correct" display.
And on my redhat internet server with php 5.1.6, the same script gives good results
localeinfo are the same for the 2 servers.
Here is the internet server localeinfo
[
test03.christophe-charron.org]
Here is the local screenshot
[
test03.christophe-charron.org]
and there the internet script
en distant : [
test03.christophe-charron.org]
The script is abolutly the same
<?php
header('Content-type: text/plain; charset=utf-8');
define('EOL', "\r\n"
;
multiplie("8099.000"
;
multiplie("8100.000"
;
multiplie("8200.000"
;
multiplie("8201.000"
;
multiplie("9300.000"
;
function multiplie($toto) {
echo ("------------------------"
.EOL;
$qte_stock= $toto;
echo $qte_stock.EOL;
$val_qte_stock=$qte_stock*10;
echo $val_qte_stock.EOL;
$val_qte_stock=$qte_stock*100;
echo $val_qte_stock.EOL;
$val_qte_stock=$qte_stock*1000;
echo $val_qte_stock.EOL;
echo ("double -> ". (double) $val_qte_stock).EOL;
$val_qte_stock=$qte_stock*10000;
echo $val_qte_stock.EOL;
echo ("double -> ". (double) $val_qte_stock).EOL;
echo EOL;
}
?>
I started a topic in french forum too. An other guy has the same problem, with my script.
But still no solution and as i'd like to use the result of my arithmetic operations to sort datas it doesn't really work !!
Se here the "sorted" result [
test03.christophe-charron.org]
Any idea? Is it a bug in last WAMP5 ?
Could anybody test my script on is own wamp5 server, whatever its version, to tell me if we obtain same results ?
And sorry for my english, I'm french !!
--
Cordially,
Christophe Charron