Project

General

Profile

Bug #16044

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

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

Status:
Closed
Priority:
Normal
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) 11 months ago

Agree to remove.
Deprecate it for now?

Updated by matz (Yukihiro Matsumoto) 11 months ago

That would be nice.

Matz.

#3

Updated by nobu (Nobuyoshi Nakada) 11 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) 11 months ago

  • Status changed from Closed to Open
#5

Updated by hsbt (Hiroshi SHIBATA) 6 months ago

  • Tags set to ruby3
#6

Updated by jeremyevans0 (Jeremy Evans) 4 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF