Variables | | I'm sending this message again, hoping that someone can reply. Should I submit a
bug report or am I doing something wrong eg in the configuration? The same script
works under Linux PHP4.
--
Mikkel Erup
-----------------------------------------------------------
Hi. I use php4 on Windows 2000. I have the following problem, which I hope
someone can help me about.
I use the following:
<?
$a = 1.2;
echo $a;
?>
it states 1 ???
what's the problem. Why doesn't it state 1.2? echo gettype($a); states double, so
the type should be right. Using $a = 1.2e3 or $a = (double) 1.2 gives me the same
result. whenever I use doubles in expressions like $c = ($a * $b); where $a and
$b are doubles it seems to be using integer values, even if I use the cast operator
(double).
--
Mikkel Erup |