From: matz@...
Date: 2019-08-06T01:22:02+00:00
Subject: [ruby-core:94157] [Ruby master Bug#16044] Float::ROUNDS (FLT_ROUNDS) should not be a constant.

Issue #16044 has been updated by matz (Yukihiro Matsumoto).


That would be nice.

Matz.


----------------------------------------
Bug #16044: Float::ROUNDS (FLT_ROUNDS) should not be a constant.
https://bugs.ruby-lang.org/issues/16044#change-80408

* 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>