Variables

From: Date: Wed, 07 Jun 2000 23:09:19 +0000
Subject: Variables
Groups: php.windows 
Request: Send a blank email to php-windows+get-304@lists.php.net to get a copy of this message
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

« previous php.windows (#304) next »