Thread: Variables
View Single Post
Old 02-05-2008, 12:22 PM   #1
Mikkel Erup
 
Mikkel Erup's Avatar
 
Posts: n/a
My Photos: ()

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default 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


  Reply With Quote
Advertisements