Reply to Problem with php 5.2.4 on wamp5 ?

Your name:

Reply:


Posted by Christophe Charron on 09/22/07 19:12

Hi,

is there a known bug on php 5.2.4 in wamp5 (http://www.wampserver.com/
en/index.php) about having different kinds of printing for some
numeric values.

This script works perfectly on an linux based server on internet but
doesn't on my local wamp5. (here is the screnshot)
http://test03.christophe-charron.org/public/php/2007_09_20/2007-09-22-qte_bizarre_b.png

the 8100*1000 and 8200*1000 looks like "bizarre" but not 8099*1000 or
8201*1000!!
Any explanation ?

And sorry for my poor english, I'm french

Cordially,
Christophe Charron

The script :

<?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;
}
?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация