Project

General

Profile

Actions

Feature #8265

closed

-0.0 does not have a Flonum like 0.0

Added by Hanmac (Hans Mackowiak) about 11 years ago. Updated about 11 years ago.

Status:
Rejected
Target version:
-
[ruby-core:54262]

Description

=begin
with Flonum,
fixed id for 0.0
(0.0).object_id #=> -9223372036854775806
(0.0).object_id #=> -9223372036854775806

non-fixed id for -0.0
(-0.0).object_id #=> 22387560
(-0.0).object_id #=> 22381340

i think that -0.0 should have fixed object_id too
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0