1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

added examples.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2009-07-03 14:02:38 +00:00
parent 7eb5c0ac74
commit e972280921

View file

@ -1536,6 +1536,8 @@ string_to_c_strict(VALUE self)
* For example:
*
* '9'.to_c #=> (9+0i)
* '2.5'.to_c #=> (2.5+0i)
* '2.5/1'.to_c #=> ((5/2)+0i)
* '-3/2'.to_c #=> ((-3/2)+0i)
* '-i'.to_c #=> (0-1i)
* '45i'.to_c #=> (0+45i)