Issue #21814 has been updated by hsbt (Hiroshi SHIBATA). Backport changed from 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE, 4.0: DONE to 3.2: REQUIRED, 3.3: DONE, 3.4: DONE, 4.0: DONE ruby_3_3 commit:ae1003f22bf7a24803912cb42e715fad950866ed merged revision(s) commit:19e539c9ee1701b34189fa0c1feb942adeb0e326. ---------------------------------------- Bug #21814: 0.pow(2,-9999999999999999990) should be zero https://bugs.ruby-lang.org/issues/21814#change-116824 * Author: matz (Yukihiro Matsumoto) * Status: Closed * Target version: 4.0 * ruby -v: 4.1dev * Backport: 3.2: REQUIRED, 3.3: DONE, 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/