Project

General

Profile

Actions

Bug #21680

closed

Integer#digits bug starting from Ruby 3.1

Bug #21680: Integer#digits bug starting from Ruby 3.1

Added by sigsys (Math Ieu) 1 day ago. Updated about 23 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.10 (2025-10-23 revision 343ea05002) [amd64-freebsd14]
[ruby-core:123769]

Description

(2**512).digits(256).last

The result was 1 on Ruby 3.0. Starting from Ruby 3.1 it turned to 256 (which can't possibly be right).

Actions

Also available in: PDF Atom