Project

General

Profile

Actions

Bug #4655

closed

String#to_c does not support scientific notation

Added by d-snp (Tinco Andringa) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
-
Backport:
[ruby-core:36046]

Description

Specs have been added for this but I did not find an issue for it so I report it here.

Example:

assert_equals('2e3+2e4i'.to_c, Complex(2e3, 2e4))

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0