Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120861 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24981 invoked from network); 21 Jul 2023 22:48:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jul 2023 22:48:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C4716180382 for ; Fri, 21 Jul 2023 15:48:34 -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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 21 Jul 2023 15:48:34 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2b70404a5a0so36295491fa.2 for ; Fri, 21 Jul 2023 15:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689979712; x=1690584512; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r4WIodKUZtHEM8/zngTtnsSKOgfAlegLrroWsK/xY7M=; b=XvmJh/d0QJFBd9T9wb54KYV/lC70o697WlIMNRTuTdkYtlRdlBT23ktBkRnG2+xJus ZsFD2GYOpYk7AS7tw7u0fP1YvTzOPv2pF/3CH1eiMBGC4v39cdyxTeMgrcIibw2iVo9y NmLLXZ3z+vSFxXbhTDuuCoLnlzU59QA08hZbfGTS8idb0GkYUrMY+e7BKhFTAzUrjz+M Grwing/2eJOJsO+qI7W/LUTYMxTtk+NuCh/8zi5wPuU6y6LeB0bqw7IE0G3XySQpEii7 YuC7MGAFiv3rC6ktG8Sd9j1YnBgB/3N3kgqnL+LdqpBNCH9ea3Ti6jQ/uO5t/NqaMvrU ohrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689979712; x=1690584512; 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=r4WIodKUZtHEM8/zngTtnsSKOgfAlegLrroWsK/xY7M=; b=crLzZ+JdpRca0Ao3BJi7HjekyevloQvzU+uuyefRtkbrmderbosaIFMBVzqgxRbTKo BrQ22AzMVYO+hRyuFOGWcqQfN8QYy1OCkevklk6vwJK50zybv5ZXCfZ5oumkbBVlmh3j qy9C8KTz87mlJBBKXqnalFU5z2C7ckd93LM7kmaxg3y8lWFXqn5GZHLOofF4R8NOUF72 uaxtqVuTqAT0YOsA3EoTBF/2oL+5HH2+mNtd1t1MCwNp4nzr5Wv2fmjvc7yZ8oxKC2+K kYH3kYmkkirqlH/CRoDKn9tgNJHrSXOmkVzTuOayscKJwqkpKQFnctMGdCUs7LxCLI5G bjLA== X-Gm-Message-State: ABy/qLbIRs3ECsagi9HQ/1qYwBFkpuS4j1dWyAh8gal+7xsHWZgPsVom yFIsxrrZf5t6hLErWMTTLNATJA0sT5tbupsZHpc= X-Google-Smtp-Source: APBJJlHDZmcl/R5QusENm1urnZrqC80AU6VGqEe6srokTcKOIzQoKMhec824hSTTFif+bKUlAC/tnRYdU8DdtaKkVWc= X-Received: by 2002:a2e:92ce:0:b0:2b9:575e:5298 with SMTP id k14-20020a2e92ce000000b002b9575e5298mr2616144ljh.13.1689979712058; Fri, 21 Jul 2023 15:48:32 -0700 (PDT) MIME-Version: 1.0 References: <102D7169-4730-4E9D-A65D-3B153AB29F51@woofle.net> In-Reply-To: <102D7169-4730-4E9D-A65D-3B153AB29F51@woofle.net> Date: Sat, 22 Jul 2023 00:48:20 +0200 Message-ID: To: Dusk Cc: Marco Pivetta , PHP internals Content-Type: multipart/alternative; boundary="0000000000006a3923060107105c" Subject: Re: [PHP-DEV] Introducing 2 new modes to round function From: jorg.sowa@gmail.com (Jorg Sowa) --0000000000006a3923060107105c Content-Type: text/plain; charset="UTF-8" Thank you for your suggestions. I added two remaining modes and I think it's complete now. I changed the names to `PHP_ROUND_CEILING` and `PHP_ROUND_FLOOR` to be consisted with rounding modes in number_format() function. I'm not sure about `PHP_TOWARD_ZERO` and 'PHP_AWAY_FROM_ZERO` as in there it's `ROUND_DOWN` and `ROUND_UP`, which I also find too vague. However, I could find names UP and DOWN in other documentations. And sadly it refers to away from zero and toward zero, so there is big mismatch in existing naming. https://developer.apple.com/documentation/foundation/numberformatter/roundingmode/down https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/math/RoundingMode.html Kind regards, Jorg --0000000000006a3923060107105c--