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:
parent
7eb5c0ac74
commit
e972280921
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue