Re: Re: cvs: phpdoc /en/functions math.xml
| From: | Hartmut Holzgraefe | Date: | Thu, 20 Sep 2001 07:43:47 +0000 |
| Subject: | Re: Re: cvs: phpdoc /en/functions math.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969337629@lists.php.net to get a copy of this message | ||
Egon Schmid wrote:
> I also don´t see any problems to use floats and
> doubles in the manual.
so inconsistencies are a good thing?
IMHO^H^H^H^Hdefinetly not!
PHP has only one floating point type,
so there should be only one name for it
for historical reasons it has been called 'double'
as is implemented as a C 'double',
but this is confusing to any newcomer without a C background
the only reason for not changing 'double' to 'float'
all over the place are is_double() (which could be aliased)
and gettype() returning "double" as a type identifier string
which is not easy to change without breaking existing code