From: "nagachika (Tomoyuki Chikanaga) via ruby-core" Date: 2026-01-25T08:46:55+00:00 Subject: [ruby-core:124621] [Ruby Bug#21814] 0.pow(2,-9999999999999999990) should be zero Issue #21814 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED, 4.0: DONE to 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ruby_3_4 commit:8fa17ea3b2c857369c808a4384ff7ff8174d69f8 merged revision(s) commit:19e539c9ee1701b34189fa0c1feb942adeb0e326. ---------------------------------------- Bug #21814: 0.pow(2,-9999999999999999990) should be zero https://bugs.ruby-lang.org/issues/21814#change-116207 * Author: matz (Yukihiro Matsumoto) * Status: Closed * Target version: 4.0 * ruby -v: 4.1dev * Backport: 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ---------------------------------------- When I try `0.pow(2,-9999999999999999990)`, irb prints `-9999999999999999990`, but I think no matter what you divide zero by, the modulo should be zero. Matz. -- 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/