Project

General

Profile

Bug #12487

-12345.digits(7) behavior

Added by znz (Kazuhiro NISHIYAMA) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.4.0dev (2016-06-15 trunk 55416) [x86_64-linux]
[ruby-core:76025]

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?

Associated revisions

Revision 6c9ffbf5
Added by nobu (Nobuyoshi Nakada) over 3 years ago

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 55418
Added by nobu (Nobuyoshi Nakada) over 3 years ago

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]

Revision 55418
Added by nobu (Nobuyoshi Nakada) over 3 years ago

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]

Revision 55418
Added by nobu (Nobuyoshi Nakada) over 3 years ago

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]

Revision 55418
Added by nobu (Nobuyoshi Nakada) over 3 years ago

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]

History

#1

Updated by nobu (Nobuyoshi Nakada) over 3 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 3 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED

Also available in: Atom PDF