Re: [RFC] Add "is_representable_as_float()" and "is_representable_as_int()" functions
| From: | Alexandre Daubois | Date: | Wed, 30 Jul 2025 11:27:35 +0000 |
| Subject: | Re: [RFC] Add "is_representable_as_float()" and "is_representable_as_int()" functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128318@lists.php.net to get a copy of this message | ||
> I would like to present the RFC to add the
> "is_representable_as_float()" and "is_representable_as_int()"
> functions. These functions provide developers with a way to check
> whether values can be losslessly converted between integer and
> floating-point representations.
>
> https://wiki.php.net/rfc/is-representable-as-float-int
The RFC is now updated with the draft implementation of the current
state of the document. The draft PR is available at
https://github.com/php/php-src/pull/19308.
Best,
Alexandre Daubois