Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121223 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7206 invoked from network); 4 Oct 2023 23:26:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Oct 2023 23:26:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9C7C518050B for ; Wed, 4 Oct 2023 16:26:35 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 4 Oct 2023 16:26:35 -0700 (PDT) Received: by mail-oo1-f45.google.com with SMTP id 006d021491bc7-57b68556d6dso214545eaf.1 for ; Wed, 04 Oct 2023 16:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696461994; x=1697066794; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C1Xw5C0BnBPbJDyx4mozc6aByz50rFGfXQ/en7rIe/I=; b=CJWO7Za77vacc63YHBbNhExOZorEj5Zc+U+DlJhJWaBVueVFXu8ROfw3sHGtKSnnyD 4ySXuMXbbMzc+h5giP2q9w0z6T6XWxtUrj4HRQDMdXq45vZYNXjxYJYHDevEd9e2VTBV ER4HF24fHTywCLLVzTQOEfCd7m1TmvGGOxgHJLENzb80V8GfBpSHDZOAY3UJmIHxxEv4 byq/aQJQ6MxQ4GEkiBq+JheenJGL0rvPT/1pN6gT+DKxYjTNn+8BR8heVEkoF6Zv9cok Ylw9TF+wFSsSsczvdkW8uIuybESIrC180BdOdiQsZJIeMVwLChgHtAL+NhGyl3BICcTD VRsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696461994; x=1697066794; h=cc: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=C1Xw5C0BnBPbJDyx4mozc6aByz50rFGfXQ/en7rIe/I=; b=mex/nKweJXFBlfsTq53Q77JadwgC388Ycy0SAw9Vsbex8khqh0gPFa0na/QArUV76i 4aPmiy99qm3+sLld5YK2EWCVl0jAMW7984paWIQKsphbkgLsmycFKFH3/VR1zeQJQ67S YG28GbbACSSIIUgE5HpQ0ahAv4Eh+VENwQTfscvyc1pCAPB2STDmGXhBzAeIhk2HuhQM vyvIBIfbv++S+52EKmCq8gXyZtvOBSJePiz2tvQAvMxkleOGTaV0ewHfeA+ZN21iZfpn 3GXYUzzMXmCJnpdOUSe7lC8RRZydBPTul3xs4i2LVhnIkSo3xvQLy+792GPpK2jtBS9v CB1g== X-Gm-Message-State: AOJu0YzPcLoznbEKcZ3fiiIH7aXc+vNUBm2q2c3uZoWomyDJrYk1b7Lg MYAbrm4be7J2Db89rxs8NqFX2jI5Cs7y7sZbfUc= X-Google-Smtp-Source: AGHT+IHBbsWS1os0Rzu97vLRpc7RZIvk2yUHk8zxKloo3sLHiTbyt3ZKN/zKnxxCn7Lfh518Hx2ll/BGzdUlaqMPydo= X-Received: by 2002:a05:6358:7e8b:b0:133:7c4:e752 with SMTP id o11-20020a0563587e8b00b0013307c4e752mr3396108rwn.26.1696461994213; Wed, 04 Oct 2023 16:26:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 5 Oct 2023 00:26:22 +0100 Message-ID: To: Jorg Sowa Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000008a474b0606ec56b0" Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] Add 4 new rounding modes to round() function From: george.banyard@gmail.com ("G. P. B.") --0000000000008a474b0606ec56b0 Content-Type: text/plain; charset="UTF-8" On Wed, 4 Oct 2023 at 23:23, Jorg Sowa wrote: > Thank you all for the discussion. I modified description of the RFC and > added deprecation of constants ROUND_UP and ROUND_DOWN from Intl extension > as an additional voting. > > Thanks also for input about possible mode ROUND_STOCHASTIC, however I think > it's the idea for the extension and not the addition to the standard > functions. > > I would like to start the voting in coming days. > I don't think deprecating the constants in the version where the aliases are introduced is a good idea. There needs to be at least one version where both variants exist to allow for cross version compatibility. I will also echo Tim's idea of using an enum instead and a union type. For the namespace, I think it would make sense to use Maths\RoundingMode Best regards, George P. Banyard --0000000000008a474b0606ec56b0--