Project

General

Profile

Actions

Bug #16044

closed

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

Added by matz (Yukihiro Matsumoto) almost 3 years ago. Updated about 2 years 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.

Actions

Also available in: Atom PDF