Project

General

Profile

Actions

Bug #3966

closed

Float('0x1.p+0') がエラーにならない

Added by tadf (tadayoshi funaba) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-10-19 trunk 29536) [i686-linux]
Backport:

Description

=begin
Float('0x1.p+0') がエラーにならない。

Float('0x1.p+0') #=> 1.0

となりますが

Float('1.') # ArgumentError: invalid value for Float(): "1."
Float('1.e+00') # ArgumentError: invalid value for Float(): "1.e+00"

であるところから、'0x1.p+0' もエラーであるべきだと思います。
=end

Actions #1

Updated by naruse (Yui NARUSE) over 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29539.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0