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..._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*1000 0;
echo $val_qte_stock. EOL;
echo ("double -". (double) $val_qte_stock) .EOL;
echo EOL;
}
?> 4 3174
WAMP is only PHP installer. Thus, while your PHP works it can't be
WAMP problem. Can you describe your goal? What do you want to achieve?
On 23 sep, 09:59, Meglio <x.meg...@gmail .comwrote:
WAMP is only PHP installer. Thus, while your PHP works it can't be
WAMP problem. Can you describe your goal? What do you want to achieve?
Hi,
i agree with you but wamp runs in window environment and this can
explain a difference and maybe (i don't hnow if it right) php window
version is'nt the same as linux version.
In fact, i'd like to obtain the same results on an internet linux
server http://test03.christophe-charron.org...07_09_22_b.php
than on a local window server (screenshot of the result : http://test03.christophe-charron.org..._bizarre_b.png
The script is the same but results for 8100.000*1000 and 8200.000*1000
are different. Id like to understand the diffrence between the 2 env
and why, in my wamp env it seems to be good for 8099.000*1000 and
8201.000*1000 values !!
Cordially,
Christophe Charron
Christophe Charron wrote:
>
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..._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
The result is not bizarre it is absolutely correct. The only difference
is that it is written in scientific notation. http://en.wikipedia.org/wiki/Scientific_notation
I don't know why one PHP version switches to scientific notation earlier
than the other, but that might have something to do with the precision
setting in php.ini.
; The number of significant digits displayed in floating point numbers.
precision = 14
Check whether precision is set to the same value on both servers.
Bye!
On 23 sep, 11:44, Anonymous <anonym...@nowh ere.invalidwrot e:
Christophe Charron wrote:
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..._20/2007-09-22...
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
The result is not bizarre it is absolutely correct. The only difference
is that it is written in scientific notation.
http://en.wikipedia.org/wiki/Scientific_notation
I don't know why one PHP version switches to scientific notation earlier
than the other, but that might have something to do with the precision
setting in php.ini.
; The number of significant digits displayed in floating point numbers.
precision = 14
Check whether precision is set to the same value on both servers.
Bye!
Hi,
when i say bizarre, it is because I dont understand why php displays
scientific notation for 8100.000*1000 or 8200.000*1000 and standard
notation for 8099.000*1000 or 8201.000*1000. I'd like to understand
that !
The localeinfo() are the same for both servers and precision is 12 in
both ini files.
--
Cordially,
Christophe Charron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gene Kahn |
last post by:
Windows XP, Apache 2, PHP5 RC1
Hello,
A total newbie here. I can't seem to get Apache2 to load the php5
module. When I loaded up this html file in a browser, only the Today's
date: line prints on the page.
<html>
<head>
<title>Listing 1-7</title>
</head>
|
by: Peter Olcott |
last post by:
www.halting-problem.com
|
by: Jon Davis |
last post by:
If I have a class with a virtual method, and a child class that overrides
the virtual method, and then I create an instance of the child class AS A
base class...
BaseClass bc = new ChildClass();
.... and then call the virtual method, why is it that the base class's method
is called instead of the overridden method? How do I fix this if I don't
know at runtime what the child class is? I'm using
Activator.CreateInstance() to load the...
|
by: Ammar |
last post by:
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the end
user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of the
browser will move too slow and then displaying that the page not found!!!!
If the message is less than or equal to 1249 then no problem.
|
by: Roger (Bordeaux) |
last post by:
Hello everyone,
I have a problem with javascripts that runs correctly under EasyPHP 1.7
but not under EasyPHP 1.8 nor WAMP5 1.6.
I am using the prototype.js library.
I wrote the following :
var url = 'simpleDocument.xml';
| |
by: comp.lang.php |
last post by:
I installed WAMP5 on my WinXP box which works just fine on its own,
and I found a practical way of handling my short-tag PHP script
via .htaccess:
php_flag short_open_tag on
To ensure my literally hundreds of PHP scripts will all function
within the WAMP5 architecture.
However, there is a case of a series of installer scripts written in
|
by: rouch |
last post by:
After a month of troubleshooting, I am at a loss, and hope some good soul here can help. I have three tables UCC, Acknowledgement, BSD. I need to create a record in the BSD table, have accounts in the UCC table review the BSD record, and acknowlege the record. After they acknowledge it, I want a line item to be created in the Acknowledgement table. I need accounts in the UCC table to view only the BSD's they have acknowledged and the BSD's...
|
by: jessy |
last post by:
Hi Guys,
Just installed WAMP5 and placed my project in the WWW folder but whenever i access my project folder it shows me a blank page although my project folder got an index file .
i don't know what's wrong !!
ANy Help
|
by: curi444 |
last post by:
i installed wamp5 in windows xp.it shows all services are working.but when am opened a php file using browser it show a white page only,not show the out put. what is the reason?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |