Actions
Bug #12487
closed-12345.digits(7) behavior
Description
rdoc of Integer#digits says -12345.digits(7) #=> [4, 6, 6, 0, 5]
, but it raises Math::DomainError: out of domain
.
Which is expected behavior?
Updated by nobu (Nobuyoshi Nakada) over 8 years ago
- Status changed from Open to Closed
Applied in changeset r55418.
numeric.c: fix doc of Integer#digits [ci skip]
- numeric.c: [DOC] fix rdoc directive, and an example of negative
value. [ruby-core:76025] [Bug #12487]
Updated by usa (Usaku NAKAMURA) over 8 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
Actions
Like0
Like0Like0