Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast
[email protected] (Alain Williams)
| Newsgroups | php.internals |
|---|---|
| Organization | Parliament Hill Computers Ltd |
| Message-ID | <[email protected]> |
On Sun, Sep 14, 2014 at 01:10:20AM +0100, Andrea Faulds wrote: > > On 14 Sep 2014, at 01:07, Alain Williams <[email protected]> wrote: > > > You give an option for float to int casting to truncate. > > Where? Possible Changes Float to Int Casting Rules ... This could be relaxed for semi-representable values. So 1.5 could be allowed for an int parameter (casted to 1). -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h>