Skip to content

Commit 4a3d834

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#to_f
1 parent c83a249 commit 4a3d834

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

string.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7071,14 +7071,15 @@ rb_str_to_i(int argc, VALUE *argv, VALUE str)
70717071
* '3.14159'.to_f # => 3.14159
70727072
* '1.234e-2'.to_f # => 0.01234
70737073
*
7074-
* Characters past a leading valid number (in the given +base+) are ignored:
7074+
* Characters past a leading valid number are ignored:
70757075
*
70767076
* '3.14 (pi to two places)'.to_f # => 3.14
70777077
*
70787078
* Returns zero if there is no leading valid number:
70797079
*
70807080
* 'abcdef'.to_f # => 0.0
70817081
*
7082+
* See {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
70827083
*/
70837084

70847085
static VALUE

0 commit comments

Comments
 (0)