Re: [RFC] Add "is_representable_as_float()" and "is_representable_as_int()" functions

From: Date: Mon, 29 Sep 2025 06:59:17 +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-128739@lists.php.net to get a copy of this message
Hi, > 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 has been withdrawn. I explained it a bit here (sent to the wrong thread, sorry about that): https://news-web.php.net/php.internals/128737 Thanks, — Alexandre Daubois

« previous php.internals (#128739) next »