Project

General

Profile

Actions

Bug #14731

closed

Float() ignores exponent in long string

Added by nobu (Nobuyoshi Nakada) about 6 years ago. Updated over 5 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 master - Bug #14729: Float("long_invalid_string") fails to throw an exceptionClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0