Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122921 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 766691A009C for ; Thu, 4 Apr 2024 02:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712198461; bh=Pu+eNB/8U69+YUJIGAjmRDSj57+bIcZhZ/sG++GFdjc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Jxu56UoR0fTMGu5t84njLmX/kW81iGf7y9fqCy2CSaofuQqlvDV/9glvhIEbVVwKJ 5nWE/xYigi0f8V7ej31CA8bi8tacuI6E5b5WV+vKsF3BAOLILTXbozEcNAuHpsLXEL ExLMOkcOLyl9Vw9ZC4x3NMhLDUJ0Fdw/rKS5Aukwvpxk5E0NSXMc7I+FqPfx2VYkZY gKYD/YyF4NRrZ7Gl2K/yrIFaAgcqnt1R/vrjJ4NtZi8plds2TOPfl2mlF4HGUJJOkk skjCu0LNFPCxxLtlt2p222S6J6iQA0S5z9V4CteccaJF7PZ9SQGKh6f/8xRIhJldME PxS5dxMHqQZcQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 652C51805E0 for ; Thu, 4 Apr 2024 02:41:00 +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,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=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 ; Thu, 4 Apr 2024 02:41:00 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2a2c9903ef0so299510a91.3 for ; Wed, 03 Apr 2024 19:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712198430; x=1712803230; 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=Pu+eNB/8U69+YUJIGAjmRDSj57+bIcZhZ/sG++GFdjc=; b=hQMBLrtb1byHbMdDrQswb9kY+S5AY45rK+czcqjD/wjfksUtcPg/Fg2itjYdnpThB9 FWavMxQn/9IKgYua8vKuGd5A8tdKRMRCQ7AOZsGr/sX+ZuJ/vQvv2E0Y5Z4MmKfnkC3F Zd4O00aQR+pplzgYtpyj1GDKLThNkbjlVeYFsfvyDkuiice7+H/kSBWKQU5yYeQfc5IN KEBcKAgPdy4/oR8bwcKUG9Cvb0L10shDyAN3AG8ixDQA3BIm5ZoFXSefx9C6AC1hJAE4 0ndKtobyYIlwcnvQ5bD5hpM3C1klar6iYo36gqmjVyG9wy0/m+htrbovLQ8j/XK0mnhs F2Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712198430; x=1712803230; 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=Pu+eNB/8U69+YUJIGAjmRDSj57+bIcZhZ/sG++GFdjc=; b=eO/SoTHDnA+MMoJaakyAUZI7D6pWjMEPae23wOl3E4VieBSZ8VaC2kWWm6xZrOBiuR a7jqRaBsMu7Mw5DfyM4mePoob9OGIekxOFXDiwD4ko1TzXJ6KWqXgjfvgI+GPaEgq+F6 wOy1XbPQwXwy+WC9umLBAoGvBD3ryK929znH/PHBejSkDc7bKQeLPESoVcyFwQArYq3w AXXG7TaQYimgE7H82q0NIDn4SnPQ0eTIHf407LcbDLNxuqTOVbYP1xgK634kbMDn27Qc xtxKrI/G/9dtb9lRzSbLTQQmT4pTNEY4/i8PHMmH37xcKF9TnPye3JM/67FWk6eb7ro8 pIwg== X-Forwarded-Encrypted: i=1; AJvYcCUtJ6kckpASGwjaIvZ9r6w/wpbiZuzDgP7J/4Diu11DNAwGWsDQkavb1vXgJ9nsoHfKicq1KvbQMWz661QSP+vcgtm8UjjH4w== X-Gm-Message-State: AOJu0YxSVx2k04vlUGdWcFtHOiteVfQvz0FqBu1QXFw1l9ZLISEzFR/5 2C9StxkSxMxjyCn/77uBNpmYAECzwTNfmkKgRcx5ETYjfzWWqPxOgDVyabmoDq1rjK3+EiNnG9a rtXYQWIdy7qAbVwB2bfe5wuAyCY4= X-Google-Smtp-Source: AGHT+IFJoc1XSQmgPtiPD5JMhH4rGS8kkZCaC1kHCYniiTMhPLhXnwpwfDCNtAR3AMu6ugd2rQF2HANtoZjRsXQdIL0= X-Received: by 2002:a17:90b:1008:b0:2a2:5e8c:3a47 with SMTP id gm8-20020a17090b100800b002a25e8c3a47mr1383995pjb.48.1712198429881; Wed, 03 Apr 2024 19:40:29 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <4F094EDA-5058-407D-AF39-06FD934FDE1F@sakiot.com> <68CF373E-6ABF-4471-8992-813B4BA1B508@sakiot.com> <904197f4-afb5-401e-9e17-7a655c5449d0@alec.pl> <655FEA80-9AB4-4AAD-A310-70ED968C97A2@sakiot.com> <8FB87901-02D7-4934-9119-55B21CEDDA9D@sakiot.com> In-Reply-To: Date: Wed, 3 Apr 2024 19:40:16 -0700 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath To: Saki Takamachi Cc: Lynn , Aleksander Machniak , php internals Content-Type: multipart/alternative; boundary="00000000000032c07106153c4345" From: jordan.ledoux@gmail.com (Jordan LeDoux) --00000000000032c07106153c4345 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 7:31=E2=80=AFPM Saki Takamachi wro= te: > > Thanks, I agree with you that it works a little differently than the > existing BCMath function, so it needs to be well-documented. > > I have summarized the discussion so far, made some corrections, and > updated the RFC. I would be happy if you could check it out. > It looks pretty good. It should probably give specific guidelines on how "no scale provided" works for addition, subtraction, multiplication, division, and exponentiation. The section now doesn't make it clear that the returned scale will behave differently for addition (the current example) than for division. Jordan --00000000000032c07106153c4345 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Apr 3, 2024 at 7:31=E2=80=AFP= M Saki Takamachi <saki@sakiot.com= > wrote:

Thanks, I agree with you that it works a little differently than the existi= ng BCMath function, so it needs to be well-documented.

I have summarized the discussion so far, made some corrections, and updated= the RFC. I would be happy if you could check it out.
=
It looks pretty good. It should probably give specific guide= lines on how "no scale provided" works for addition, subtraction,= multiplication, division, and exponentiation. The section now doesn't = make it clear that the returned scale will behave differently for addition = (the current example) than for division.

Jordan
--00000000000032c07106153c4345--