summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-03 14:02:38 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-03 14:02:38 +0000
commite97228092110119cd4c1d9ab7af92a143ce9f3e0 (patch)
tree28e373b075ae419271746499b26d133834cc8a1d /complex.c
parent7eb5c0ac7472f7e73fb286f7e6f114b7e6f0fc85 (diff)
added examples.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index e8c6a9428a..048aa92bfd 100644
--- a/complex.c
+++ b/complex.c
@@ -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)