Actions
Bug #16044
closedFloat::ROUNDS (FLT_ROUNDS) should not be a constant.
Description
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 withfesetround
andFLT_ROUNDS
reflects that change.
So it should not be a constant in Ruby too. Or it should be removed altogether.
Updated by nobu (Nobuyoshi Nakada) over 5 years ago
Agree to remove.
Deprecate it for now?
Updated by matz (Yukihiro Matsumoto) over 5 years ago
That would be nice.
Matz.
Updated by nobu (Nobuyoshi Nakada) over 5 years ago
- Status changed from Open to Closed
Applied in changeset git|e89d9f3debab353d1c5a5162752af8f201d98d49.
Deprecate Float::ROUNDS, which should not be a constant
[Bug #16044]
Updated by nobu (Nobuyoshi Nakada) over 5 years ago
- Status changed from Closed to Open
Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0Like0Like0Like0Like0