Re: [RFC] Floating Point support in GMP extension
| From: | Andrea Faulds | Date: | Sun, 05 Jan 2014 13:20:06 +0000 |
| Subject: | Re: [RFC] Floating Point support in GMP extension | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71006@lists.php.net to get a copy of this message | ||
On 05/01/14 07:45, Stas Malyshev wrote:
Also, I'm not sure how exactly "all other gmp_*() functions" are supposed to work on floats - for many of them it just make no sense (such as factorial or q/r division or modulo), for others like bit functions it technically could make sense but would probably be not useful since nobody does bit ops on floats... Maybe it would make more sense to look into what GMP library does with floats and write different function set from there?Well, I note that you can do bitwise operations on floats in PHP as it stands, although obviously this is accomplished by rounding. I don't see why we shouldn't allow this for GMP floats, even though its applications are likely limited. -- Andrea Faulds http://ajf.me/