Page 1 of 1

Why Exponential value is string?

Posted: Mon Sep 30, 2013 2:02 pm
by same2cool
I used double codes. here. integer value is printing string type why?

Code: Select all

$name1 = "10e10";
var_dump($name1);
it will defiantly shows : 10e10 => String

but when I use :

Code: Select all

$name1 = 10e10;
var_dump($name1);
it also shows 10000000000 => String

how is this possible

Re: Why Exponential value is string?

Posted: Mon Sep 30, 2013 2:21 pm
by AbraCadaver
$name1 = 10e10;
var_dump($name1);


it also shows 10000000000 => String

how is this possible
No.
[text]float(100000000000)[/text]

Re: Why Exponential value is string?

Posted: Mon Sep 30, 2013 4:50 pm
by same2cool
Yes you are right, I recheck this code,

my system cache was giving problem.