Project

General

Profile

Actions

Bug #16044

closed

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

Added by matz (Yukihiro Matsumoto) over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
[ruby-core:94139]
Tags:

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.

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.

Actions #3

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]

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Closed to Open
Actions #5

Updated by hsbt (Hiroshi SHIBATA) almost 5 years ago

  • Tags set to ruby3
Actions #6

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0