e$B8=:_!"e(BFloat(“7.”) e$B$,e(B 7.0 e$B$K$J$j$^$9!#e(B
% ./ruby -ve ‘p Float(“7.”)’
ruby 1.9.0 (2008-05-23 revision 16559) [i686-linux]
7.0
1.8.5, 1.8.6 e$B$G$Oe(B ArgumentError e$B$K$J$k$h$&$G$9!#e(B
% ruby-1.8 -ve ‘p Float(“7.”)’
ruby 1.8.7 (2008-05-23 patchlevel 5000) [i686-linux]
7.0
% ruby-1.8.6p111 -ve ‘p Float(“7.”)’
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]
-e:1:in Float': invalid value for Float(): "7." (ArgumentError) from -e:1 % ruby-1.8.5 -ve 'p Float("7.")' ruby 1.8.5 (2006-08-25) [i686-linux] -e:1:in
Float’: invalid value for Float(): “7.” (ArgumentError)
from -e:1
% ruby-1.8.4 -ve ‘p Float(“7.”)’
ruby 1.8.4 (2005-12-24) [i686-linux]
7.0
e$BD4$Y$F$_$k$H!"e(B1.8.5 e$B$Ge(B ArgumentError e$B$K$J$C$?$N$Oe(B
[ruby-dev:29036] e$B$G0U?^$5$l$?JQ99$N$h$&$G$9!#e(B
1.9, 1.8 e$B$Ge(B ArgumentError e$B$G$J$/$J$C$?$N$O!"e(Bstrtod
e$B$,JQ$o$Ce(B
e$B$?$+$i$N$h$&$G$9!#e(B