Re: Re: cvs: phpdoc /en/functions math.xml

From: Date: Thu, 20 Sep 2001 18:28:13 +0000
Subject: Re: Re: cvs: phpdoc /en/functions math.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337631@lists.php.net to get a copy of this message
Just a short 2 cents: --- Hartmut Holzgraefe <hartmut@six.de> wrote: > Hartmut Holzgraefe wrote: > > 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 > > but then the gettype() page already says: > > Warning > Never use gettype() to test for a certain type, > since the > returned string may be subject to change in a > future version. > > and we already have is_float() > > so no reasons left for not calling a floating point > number > "float" instead of "double" (double what?) double is referred to number that is a floating point with double precision, i.e. twice as many bits are used to store as it is used for regular floating point numbers (called float). In fortran (and other langs), float was 16 bit and double 32 bit (IIRC). Some newer langs and scripting ones use the double width for either. Just my 2cents. ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/

« previous php.doc (#969337631) next »