> Alexandre Daubois <alex.daubois+...@gmail.com> hat am 29.07.2025 14:52 CEST 
> geschrieben:
> 
>  
> Hi internals,
> 
> 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
> 
> Best,
> Alexandre Daubois

Thanks for the RFC.

Since frameworks already have things like Strings::is_stringable() and 
Arr::arrayable(), I'd suggest to use is_floatable(), is_intable() or 
is_integerable(), etc.
To me, this would also feel more consistent is is_float(), is_int(), etc.

Regards
Thomas

Reply via email to