Project

General

Profile

Bug #16044

Float::ROUNDS (FLT_ROUNDS) should not be a constant.

Added by matz (Yukihiro Matsumoto) 4 months ago. Updated 4 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:94139]

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 with fesetround and FLT_ROUNDS reflects that change.

So it should not be a constant in Ruby too. Or it should be removed altogether.

Associated revisions

Revision e89d9f3d
Added by nobu (Nobuyoshi Nakada) 4 months ago

Deprecate Float::ROUNDS, which should not be a constant

[Bug #16044]

History

Updated by nobu (Nobuyoshi Nakada) 4 months ago

Agree to remove.
Deprecate it for now?

Updated by matz (Yukihiro Matsumoto) 4 months ago

That would be nice.

Matz.

#3

Updated by nobu (Nobuyoshi Nakada) 4 months ago

  • Status changed from Open to Closed

Applied in changeset git|e89d9f3debab353d1c5a5162752af8f201d98d49.


Deprecate Float::ROUNDS, which should not be a constant

[Bug #16044]

#4

Updated by nobu (Nobuyoshi Nakada) 4 months ago

  • Status changed from Closed to Open

Also available in: Atom PDF