Project

General

Profile

Actions

Bug #14731

closed

Float() ignores exponent in long string

Bug #14731: Float() ignores exponent in long string

Added by nobu (Nobuyoshi Nakada) over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:86836]

Description

Related to #14729:

Float("1."+"00000"*Float::DIG+"0e10") #=> 10000000000.0
Float("1."+"00000"*Float::DIG+"_0e10") #=> 1.0

Related issues 1 (0 open1 closed)

Related to Ruby - Bug #14729: Float("long_invalid_string") fails to throw an exceptionClosedActions

Updated by nobu (Nobuyoshi Nakada) over 7 years ago Actions #1

  • Related to Bug #14729: Float("long_invalid_string") fails to throw an exception added

Updated by nobu (Nobuyoshi Nakada) over 7 years ago Actions #2

  • Status changed from Open to Closed

Applied in changeset trunk|r63322.


object.c: fix exponent with underscore

  • object.c (rb_cstr_to_dbl_raise): do not ignore exponent part
    when the input string longer than internal buffer contains
    underscore(s). [ruby-core:86836] [Bug #14731]

Updated by nagachika (Tomoyuki Chikanaga) almost 7 years ago Actions #3 [ruby-core:91188]

  • Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE

ruby_2_5 r66879 merged revision(s) 63322.

Updated by usa (Usaku NAKAMURA) almost 7 years ago Actions #4

  • Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE to 2.3: REQUIRED, 2.4: DONE, 2.5: DONE
Actions

Also available in: PDF Atom