[ruby-core:94141] [Ruby master Bug#16044] Float::ROUNDS (FLT_ROUNDS) should not be a constant.
From:
nobu@...
Date:
2019-08-05 02:04:36 UTC
List:
ruby-core #94141
Issue #16044 has been updated by nobu (Nobuyoshi Nakada). Agree to remove. Deprecate it for now? ---------------------------------------- Bug #16044: Float::ROUNDS (FLT_ROUNDS) should not be a constant. https://bugs.ruby-lang.org/issues/16044#change-80390 * 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>