bug or feature ???

[email protected]
Newsgroups php.version4
Message-ID <[email protected]>
Hi!

i get strange results from php4
(php4rc2, win98)

code is:

$a=200;
$b=0.05;
echo $a;
echo "<br>";
echo $b;
echo "<br>";
echo $a*$b;

and result is:
200
0
0

in php3 it was:
200
0.05
10

so, when i change $b to
$b="0,05" then it works... (anyway $b=0,05 make parse error...)

i have win98 pan euro and 'locales' set to czech...

hm... feature or bug ???

Milan



Objevujte Internet s http://www.centrum.cz
ZaloĹžte si svuj mail na http://mail.centrum.cz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.