From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7DBEF1F4C4 for ; Wed, 6 Nov 2024 04:35:20 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=UpN4Bwtv; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Mvgr09Zs; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1730867718; bh=EeMqco+0gsWGBTN8rA5MCGL0Mb+dyb8Qna2oInHUUd0=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=UpN4BwtvXGOR0esX6JjLNAvBHQcFB52h/ckYP2ReYeWHZ6ekozS9a+6BVdlgJ18+C pKiah8uNezTc2g9e+cuNrCrn0U0nWMvB4P3T390jQzFI1MAFJcr8+BU3C4qny3I2Tq qgd0yI+h2lBV/5wUXp8wdvzP5EZocfSzWzwFrCxk= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 5990D44B58 for ; Wed, 6 Nov 2024 04:35:18 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Mvgr09Zs; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 5243B44080 for ; Wed, 6 Nov 2024 04:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=K63ENgi21QH/cT14p1BDvXp2QbPITJdB22LQCfTvMlc=; b=Mvgr09ZsSI+tC5TNF8gcxsf97q+5ZJLxoFtGeNxkEM7F7QN5Acyv2vBME8QzCVaHP+Yv FcfsykhWQXqvlhMUfHisJ9zVlG6h7Qc5NGOqQijwtOcFny/LfH/xWKuvD2lP0NwEpETRbF ViHM2sdnpl6sd0eacxKGV5Br8T1C0t5g6lsdBP8BT25FVONGS7sCN/QY33Jjo5SOaGRtlz JrIjwLm6SmWl4WUXy5OPfe5+UCtyWxm3c03dfsiSeUNiPNltBa6vTo/EDMkdnUi/vkJZqK yDwRlfU5SC5LNwRKN20HNU0FH2jYavyzhMeBiq3g2ToX7ZWNPuuuzjR6c4olOBZQ== Received: by recvd-76b48cd7f5-fkdlt with SMTP id recvd-76b48cd7f5-fkdlt-1-672AF1F7-7 2024-11-06 04:35:03.295017469 +0000 UTC m=+4703857.444854485 Received: from herokuapp.com (unknown) by geopod-ismtpd-8 (SG) with ESMTP id N3JF3PWcSIOUImJiPH-H2w for ; Wed, 06 Nov 2024 04:35:03.164 +0000 (UTC) Date: Wed, 06 Nov 2024 04:35:03 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20873 X-Redmine-Issue-Author: nobu X-Redmine-Issue-Assignee: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96431 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUehRcL6sN=2F3cJbFJyk84MtZjxjCgeX?= =?us-ascii?Q?JadayfY0xvztJ3ARrg8JoOe=2FoxZ+XHJKnSSsj8o?= =?us-ascii?Q?x+cfxLRpVCE02kiMhHaJwz8+mevrSJNJsd5X1lm?= =?us-ascii?Q?4MwpWiIBO+oVlt5HWMDvoWQYsO7rPble1gOHh2V?= =?us-ascii?Q?fKogsJ2M6pogE=2Fpy1v9cMP5MNQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 75KQ762FVDXWBQAXN3ADDUXHMF6AMM2G X-Message-ID-Hash: 75KQ762FVDXWBQAXN3ADDUXHMF6AMM2G X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119765] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN` List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20873 has been updated by nobu (Nobuyoshi Nakada). Assignee set to nobu (Nobuyoshi Nakada) Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN to 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED ---------------------------------------- Bug #20873: `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN` https://bugs.ruby-lang.org/issues/20873#change-110429 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED ---------------------------------------- Since the beginning, ruby 2.3. ```ruby require 'rbconfig/sizeof' fmin, fmax = RbConfig::LIMITS.values_at("FIXNUM_MIN", "FIXNUM_MAX") sprintf("%f", Rational(fmin, fmax)) #=> --1.000000 ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/