[ruby-core:76025] [Ruby trunk Bug#12487] -12345.digits(7) behavior
From:
zn@...
Date:
2016-06-14 15:19:51 UTC
List:
ruby-core #76025
Issue #12487 has been reported by Kazuhiro NISHIYAMA. ---------------------------------------- Bug #12487: -12345.digits(7) behavior https://bugs.ruby-lang.org/issues/12487 * Author: Kazuhiro NISHIYAMA * Status: Open * Priority: Normal * Assignee: Kenta Murata * ruby -v: ruby 2.4.0dev (2016-06-15 trunk 55416) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- 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? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>