Don't doubt :) search for the reason! For example at: http://lv.php.net/manual/en/function.gettype.php where it is written that:
Possibles values for the returned string are: ... * "double" (for historical reasons "double" is returned in case of a float, and not simply "float") ... So that is the reason, whe gettype returns a different type! Enjoy, John On Mar 11, 9:44 am, selvam dilli <[email protected]> wrote: > hi > i have a doubt in php > > /*php > $a=10.43; > echo gettype($a); > var_dump($a); > ?> > > */ > the output for gettype( $a) is double > an for var_dump is float. > > how does php treats float and double. > what is the difference between float and double in php. > > regards > selvam Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
