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

Updated by ko1 (Koichi Sasada) about 11 years ago

i think that -0.0 should have fixed object_id too

Why?

Actions #2

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Tracker changed from Bug to Feature
  • Status changed from Open to Feedback

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Description updated (diff)

Updated by naruse (Yui NARUSE) about 11 years ago

  • Description updated (diff)

Updated by Hanmac (Hans Mackowiak) about 11 years ago

for me it doesnt make much sense that some Floats have fixed object_ids and some Floats does have not, so i think, when fixed ids are possible than they should be for much of them as possible

Updated by ko1 (Koichi Sasada) about 11 years ago

  • Category set to core
  • Status changed from Feedback to Rejected
  • Assignee set to ko1 (Koichi Sasada)

It seems not practical problem.
Please reopen this ticket if you find real problem.

(for example, there are too many -0.0 objects in your program and it beats performance)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0