From: Tinco Andringa Date: 2011-05-10T00:54:07+09:00 Subject: [ruby-core:36059] Re: [Ruby 1.9 - Bug #4655][Closed] String#to_c does not support scientific notation > Issue #4655 has been updated by Kenta Murata. > > Status changed from Open to Closed Thanks for accepting my patch! :) I'm a bit of a beginner with C, I plan on submitting patches to bugs I find every now and then. Please let me know if you have any tips or comments about my code. To Funaba-san: I saw you replaced my calls to strchr with strpbrk that's awesome I didn't know that function existed. I also saw you removed a single line of comment. Are single line comment 'hints' frowned upon in Ruby? Do they give too much attention to the utter lack of comments around it? :P Thank you! Tinco > ---------------------------------------- > Bug #4655: String#to_c does not support scientific notation > http://redmine.ruby-lang.org/issues/4655 > > Author: Tinco Andringa > Status: Closed > Priority: Normal > Assignee: Yukihiro Matsumoto > Category: core > Target version: 1.9.3 > ruby -v: - > > > 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)) > > > -- > http://redmine.ruby-lang.org > >