[ruby-core:94139] [Ruby master Bug#16044] Float::ROUNDS (FLT_ROUNDS) should not be a constant.
From:
matz@...
Date:
2019-08-04 22:36:57 UTC
List:
ruby-core #94139
Issue #16044 has been reported by matz (Yukihiro Matsumoto). ---------------------------------------- Bug #16044: Float::ROUNDS (FLT_ROUNDS) should not be a constant. https://bugs.ruby-lang.org/issues/16044 * Author: matz (Yukihiro Matsumoto) * Status: Open * Priority: Normal * Assignee: * Target version: Next Major * ruby -v: * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- According to the reference, `FLT_ROUNDS` is not a constant in C. > `FLT_ROUNDS` > Returns the current rounding direction of floating-point arithmetic operations. > Notes > The rounding mode can be changed with `fesetround` and `FLT_ROUNDS` reflects that change. So it should not be a constant in Ruby too. Or it should be removed altogether. -- 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>