* [ruby-core:119764] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN`
@ 2024-11-06 4:31 nobu (Nobuyoshi Nakada) via ruby-core
2024-11-06 4:35 ` [ruby-core:119765] " nobu (Nobuyoshi Nakada) via ruby-core
2024-11-10 8:30 ` [ruby-core:119873] " nagachika (Tomoyuki Chikanaga) via ruby-core
0 siblings, 2 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-11-06 4:31 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20873 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #20873: `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN`
https://bugs.ruby-lang.org/issues/20873
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:119765] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN`
2024-11-06 4:31 [ruby-core:119764] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN` nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-11-06 4:35 ` nobu (Nobuyoshi Nakada) via ruby-core
2024-11-10 8:30 ` [ruby-core:119873] " nagachika (Tomoyuki Chikanaga) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-11-06 4:35 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:119873] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN`
2024-11-06 4:31 [ruby-core:119764] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN` nobu (Nobuyoshi Nakada) via ruby-core
2024-11-06 4:35 ` [ruby-core:119765] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-11-10 8:30 ` nagachika (Tomoyuki Chikanaga) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2024-11-10 8:30 UTC (permalink / raw)
To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)
Issue #20873 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED
ruby_3_2 commit:a7b013b392ca0ba4930e579f4c9e40d99d871752 merged revision(s) commit:d71be7274bd2623bb521be72c245c08fc38d6ae4.
----------------------------------------
Bug #20873: `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN`
https://bugs.ruby-lang.org/issues/20873#change-110564
* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Assignee: nobu (Nobuyoshi Nakada)
* Backport: 3.1: REQUIRED, 3.2: DONE, 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-10 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-06 4:31 [ruby-core:119764] [Ruby master Bug#20873] `printf("%f")` returns wrong result for `Rational` with `FIXNUM_MIN` nobu (Nobuyoshi Nakada) via ruby-core
2024-11-06 4:35 ` [ruby-core:119765] " nobu (Nobuyoshi Nakada) via ruby-core
2024-11-10 8:30 ` [ruby-core:119873] " nagachika (Tomoyuki Chikanaga) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).