Project

General

Profile

Actions

Bug #16044

closed

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

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0