Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121619 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92923 invoked from network); 8 Nov 2023 14:42:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Nov 2023 14:42:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E390618050B for ; Wed, 8 Nov 2023 06:42:20 -0800 (PST) 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS9370 160.16.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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, 8 Nov 2023 06:42:20 -0800 (PST) Received: from smtpclient.apple (softbank060067217005.bbtec.net [60.67.217.5]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id EFE83401E7; Wed, 8 Nov 2023 23:42:18 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1699454538; bh=GbdSMhZx23C3yHCb2IIuJ4idOiQI4Rzp6Fks8f8esz0=; h=Subject:From:In-Reply-To:Cc:Date:References:To:From; b=dAFtPwgUzuO0g1HzGRXj+4zyzWE2hPTA6LDOrR/21/N6BYdOH3D8mvlSRfO5XzZ0s AyIY17iTAPhsD49mxfChvVu0jqHp7RXE9w5CTIGHaLzhJvxVUaTs2RkkykSiYhimHg Um65XhJs7vA4mma8u/9Y1zaN2VMWbFYxP5mST7LM= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) In-Reply-To: <27888CDE-121B-45CE-BEC8-41C60B4DC05C@sakiot.com> Cc: Michael Wallner , internals@lists.php.net Date: Wed, 8 Nov 2023 23:42:07 +0900 Message-ID: <068FE837-F85A-4BD9-8C0C-2171AFE34CB2@sakiot.com> References: <27888CDE-121B-45CE-BEC8-41C60B4DC05C@sakiot.com> To: Jakub Zelenka X-Mailer: iPhone Mail (21A360) Subject: Re: [PHP-DEV] [RFC] [Discussion] Change the edge case of round() From: saki@sakiot.com (Saki Takamachi) I forgot to quote again. > It might make sense to also put some info what other languages / dbs do. Fo= r example Python round(0.285, 2) result is 0.28 and it's got also decimal pa= rameter. If you can find other implementations that have got such function, t= hat would be great! Added results for Ruby, Python, and major DBs. Regards. Saki=