Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128318 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id F195C1A00BC for ; Wed, 30 Jul 2025 11:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753874767; bh=v4xTCLCV/J8b1iNXawbW4lJHUoFHYXCifumqQdCAzPE=; h=References:In-Reply-To:From:Date:Subject:To:From; b=PhclvhNP/sEgFTrKtqQPt7MwS4qmb+cnlhkkH5y4Y6Rq66Bi01Bh8ZzRYyGz7CPtx wWAkt1ohrHYMlI9KA70zAEz/k8Acu/zaiy8UFVVQjxVUIM/mrgytgpkvgoQnr7M98g dnE8YpK5Bn/IHuO/6G2tgoI5kbHRghNTNzxX2daTFjsJ8rqpmRQ/vmbC+YvLuvevgl QxAfRGi+YABImpN0jgiDzUYebLs7q/61Zt4MBhIqQI/pRrke2G2zOxY1MeZ0BANVXU FNBEY1+hU1cRa+2rvUF55iK4ACQImKAFN99apkXcnYnFsr648FqOLokVXn79+Sb6vB cyVL8wT8iPXow== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9278A18006C for ; Wed, 30 Jul 2025 11:26:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 30 Jul 2025 11:26:06 +0000 (UTC) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-6153a19dddfso5379956a12.1 for ; Wed, 30 Jul 2025 04:27:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753874867; x=1754479667; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=v4xTCLCV/J8b1iNXawbW4lJHUoFHYXCifumqQdCAzPE=; b=N4FnnM/hYkQIyvGRuKIpqas2/4AwhOFOT5I3aZoNBKof7MfhR4tdHVAx2OTQfcZi09 C+iAZmMhnxwq3nWI8V4O2LQa9xZ64hjbfkBrk7JwrabVs8FqicIrsLOgdC2KTQt2/Vzk CIkoVgeQ/zR2SXe3nUqTJN/vySe5vQ7oTY+xjvZui7mjghWbQ2Eq/pZhIhzzPUFmIwKv YBh64XIBN1JbBzt8D91cX1VLenUp5P9zAABvAFqaiAQg4P/McGyxKconf99wRhKu8N56 f8Oz5iLTey9HHgPdllOCXDGEjFYOwKVH4yIDO9ddMB9yyJaMEApsYoIy19PAoMZpyHks w/yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753874867; x=1754479667; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v4xTCLCV/J8b1iNXawbW4lJHUoFHYXCifumqQdCAzPE=; b=Zkloy03mAkJtAm1UQ5Xke8PuPuSSUa75ha1eF1vFwypOVuXV6fC2WqEf3BFSF/NGoi lMXL3uISCVPtoSdpUcMmspJOZ0JRSWXAdJXtKYz0WcIGCQB/BVL5tQE981bjD+JeflTo zdE/UxifYVDoo9w0qC0xLc2RCTFBdLwNPB1jqauQFHK9Lx5v+zxgMwuEyyMZuJRItmao TAZyi39zn20FECuSO7G/kc0aOsrsLbccxzBwvAx0mJQUZr8sXHRzL6VTBpHmYJRSWT1c dPmuoGw8odK7ElneQiqDEuY9yUO2JZx6bX5sBjH9sE8MMeMKXn6X0/Hg23yb6PwbJavM +jmw== X-Gm-Message-State: AOJu0Yy9h+jQtHbY8enuoGpDPWweDlVRS1LNFjCmZ0wERDaq7s1o8Dyj zSsx05BUVP3hywuG+fr+V28/1JJHhCIiyEtNL5mybrX50LfMt7lGQbiXcgCv52L0ABhqEhzS4rz nFGB5kKCjSfp+/BsJl/46f3DP6fdnYXfbKk7N X-Gm-Gg: ASbGncsNSmQD3V1o8iwdfVzIR8mNDmVJ2t1kmFfHYJdWQjEgO5z47eoX/9pRsRQtkHn pzL095ZdXarn7x9dKSnWUrb+lfNt/oHoeN59YFmkzG5P/0K54AZ+mttVCNk42er1Gt+u8klKCkl bUWuiMfW2P/NYOLUEhSgyWNVNdbBsjNM4TPWKEKl47YsXMGQ/EUDciAm6+0XhCW8wq69h7EM5Tk c7QC98TvP+xacjVg1BPYkTA3fh9ECVLUgMFzMxLrAokD6VZvRvo X-Google-Smtp-Source: AGHT+IF7Bdg2S2h6JaUNC2bM35VBoS5wPROCb8zvOn/5ujr5H6cz0C32oEIvfT58Sp7wPSmC5kAujF8b+MsvDKYP5sU= X-Received: by 2002:a05:6402:27c6:b0:612:d7ff:5b3d with SMTP id 4fb4d7f45d1cf-61586f12673mr2962207a12.9.1753874866770; Wed, 30 Jul 2025 04:27:46 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 30 Jul 2025 13:27:35 +0200 X-Gm-Features: Ac12FXzUckuOtmWTcllNvSIgbIyq0z2ZjA2vO5viD764x3Zx25z4bdJcyUrjHsA Message-ID: Subject: [PHP-DEV] Re: [RFC] Add "is_representable_as_float()" and "is_representable_as_int()" functions To: PHP internals list Content-Type: text/plain; charset="UTF-8" From: alex.daubois+php@gmail.com (Alexandre Daubois) > 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