Page 1 of 1

float?

Posted: Sun May 15, 2005 11:05 am
by shiznatix
what is a "float"? sorry if this is a dumb question but i came across this term and searched google to no avail...maybe im the dumb one...or maybe im having a early monday?

Posted: Sun May 15, 2005 11:14 am
by John Cartwright
some usefull information
integer wrote:If you specify a number beyond the bounds of the integer type, it will be interpreted as a float instead. Also, if you perform an operation that results in a number beyond the bounds of the integer type, a float will be returned instead.
Also take a look over at http://ca3.php.net/manual/en/language.types.float.php

Posted: Sun May 15, 2005 11:16 am
by shiznatix
ok so its like a number that isnt a "solid" number per say? do i have the right idea after reading this?

Posted: Sun May 15, 2005 11:18 am
by John Cartwright
I just found a more in depth explaination of floats

http://www.randelshofer.ch/fhw/gri/float.html

Posted: Sun May 15, 2005 11:24 am
by Pyrite
Hmmm http://docs.php.net/en/language.types.html

Although they describe Float as the same as Double, but in C++, they are different. But basically a float is a decimaled integer or real number.