Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123235 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 qa.php.net (Postfix) with ESMTPS id D0CC01A009C for ; Tue, 30 Apr 2024 12:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714480490; bh=vJf2mDWn2v5ZPhwg4H6reJYNfjGLiCPSvHEJ+fOeZNk=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=coIXJrZVst51uW9OwuPkU6FLN43Qx+YHGwI1hSjikT+8q6ydTiGofTQvyGusPMwTk STsiX/AGZkcP3pKFRTOV90J/TIUKCO52H8Cyf5Z5UA9OsEwpYf7el6xzF1nXwp2G5L H/6GH4P9iFFsDvstmCW2wftDwJ62NH4/ZDY7K+TBT35lxplQsNSx+CY3VlWItS6JTb hXrO9U2zRU3KshEpychZOTgl95du3w1KtRUBOoZ+W0Xxp+fYuIF3fMjpLQGPGB/rNx 9I9nR82hr+553jI2uGwsqyMtLz3fRkplhOZqDqTXOeJ6yNsfN/6/OvzfMwvri/q789 SFsbY9p3gjAhg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6829418005B for ; Tue, 30 Apr 2024 12:34:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_PASS,HTML_MESSAGE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 30 Apr 2024 12:34:47 +0000 (UTC) Received: from smtpclient.apple (unknown [117.55.37.250]) (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 543AF401FD; Tue, 30 Apr 2024 21:34:00 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1714480440; bh=vJf2mDWn2v5ZPhwg4H6reJYNfjGLiCPSvHEJ+fOeZNk=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=WDrWwVpBtlCU9Dv9391fg1mMpfvclhEd2Bj39a0/Cjkwjp601xtxXT9xY+g4qsDhu F7vnM90xJvw/ckHD3wBoDUHO7ZSeKEMB+Rs80bo3LiRSoHj5792sL1ygFYVupjuOSQ 4P66A5nncV307J0wGEOjVKXeixlGtsO/azee28V8= Content-Type: multipart/alternative; boundary=Apple-Mail-8BE0800B-D295-4EA6-A9A1-25D6490ACF3E Content-Transfer-Encoding: 7bit Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (1.0) Subject: Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath Date: Tue, 30 Apr 2024 21:33:47 +0900 Message-ID: <75C64B88-FEB9-434B-B7F9-4CCE26A12602@sakiot.com> References: Cc: php internals In-Reply-To: To: =?utf-8?Q?Alexandru_P=C4=83tr=C4=83nescu?= X-Mailer: iPhone Mail (21E236) From: saki@sakiot.com (Saki Takamachi) --Apple-Mail-8BE0800B-D295-4EA6-A9A1-25D6490ACF3E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi Alex, > Just one small note from me, for mod operation, related to scale there is a= mention of "Use the scale of the dividend as is". > In reality, I think it should be the same as add and sub, "The larger scal= e of the two values is applied". > In this way, something like this can work by default: https://3v4l.org/Nis= mE Thanks for the good pointers! This was an oversight on my part. I will updat= e the RFC. Regards, Saki= --Apple-Mail-8BE0800B-D295-4EA6-A9A1-25D6490ACF3E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Hi Alex,

Just one small note from me, for mod operation, related to scale there is a mention of "Use the scale of the dividend as is".
In reality, I think it should be the same as add and sub, "The larger scale of the two values is applied".
In this way, something like this can work by default: https://3v4l.org/NismE

Thanks for the good pointers! This was an oversight on my part. I will update the RFC.

Regards,

Saki
--Apple-Mail-8BE0800B-D295-4EA6-A9A1-25D6490ACF3E--