Strtod in 1.8.4 stable snapshot


#1

¸¶¤Ç¤¹¡£

[ruby-dev:28609]¤Ç1.8.4 stable snapshot¤Îsample/test.rb
¤Ç¥¨¥é¡¼¤¬½Ð¤ë¤È¸À¤¤¤Þ¤·¤¬¡¢¤Þ¤À¼ã´³»Ä¤Ã¤Æ¤¤¤Þ¤¹(1207¹ÔÌÜ)¡£

1.9.0 ¤Îutil.c¤Îstrtod¤ò¤½¤Î¤Þ¤Þ»ý¤Ã¤ÆÍè¤ë¤ï¤±¤Ë¤Ï¤¤¤«¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡£


#2

e$B86$G$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

e$BIbF0>.?tE@?t$N<v$$!)e(B:-)

|1.9.0 e$B$Ne(Butil.ce$B$Ne(Bstrtode$B$r$=$N$^$^;}$C$FMh$k$o$1$K$O$$$+$J$$$s$G$7$g$&$+!#e(B

e$B%3!<%I$O$=$N$^$^;}$C$F$-$F$"$C$F!"0c$$$O$J$$$O$:$G$9$,!#e(B

e$B$"$l!":#F|$Ne(Bsnapshote$B$G0c$$$,$"$j$^$9$h!#e(B1.9.0e$B$Ne(Bruby_strtode$B$G$Oe(BpowersOf10
e$B$H$$$&G[Ns$r;H$C$F$$$k$1$I!"e(B1.8.4e$B$N$G$O$J$$$G$9!#e(B

e$B$A$J$_$Ke(Bgcc
3.4.4(cygwin)e$B$G$O!"e(Bteste$B$Oe(Bsucceedede$B$G$7$?!#e(B
e$B!t%(%i!<$,=P$?$N$Oe(Bgcc 3.3.5(Debian sarge) e$B$G$9!#e(B


#3

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28619] strtod in 1.8.4 stable snapshot”
on Sun, 7 May 2006 13:01:33 +0900, Shin-ichiro HARA
removed_email_address@domain.invalid writes:

|[ruby-dev:28609]e$B$Ge(B1.8.4 stable snapshote$B$Ne(Bsample/test.rb
|e$B$G%(%i!<$,=P$k$H8@$$$^$7$,!"$^$@<c43;D$C$F$$$^$9e(B(1207e$B9TL\e(B)e$B!#e(B

e$B;d$N<j85$G$O=P$J$$$s$G$9$h$M$(!#$J$K$,0c$&$s$@$m$&!#e(B

|1.9.0 e$B$Ne(Butil.ce$B$Ne(Bstrtode$B$r$=$N$^$^;}$C$FMh$k$o$1$K$O$$$+$J$$$s$G$7$g$&$+!#e(B

e$B%3!<%I$O$=$N$^$^;}$C$F$-$F$"$C$F!“0c$$$O$J$$$O$:$G$9$,!#e(B
e$B$”!"e(BMDMINEXPTe$B$J$I$NCM$,0c$&$+!#e(B


#4

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:28622] Re: strtod in 1.8.4 stable snapshot”
on May.07,2006 17:58:54, removed_email_address@domain.invalid wrote:
| e$B$"!"$=$&$+!#;d$Ne(B1.9e$B$O<j$,F~$C$F$$$F!"$^$@%3%_%C%H$7$F$$$J$$e(B
| e$B$N$G$7$?!#e(BpowersOf10e$B$r;H$C$?$b$N$O;H$C$F$$$J$$$b$N$h$j$bAa$/e(B
| e$BL58BBg$KH/;6$9$k$s$G:NMQ$7$?$/$J$$$G$9!#$@$+$i=$@5$9$k$J$i:#e(B
| 1.8.4 e$B$K$"$k$b$N$r%Y!<%9$K9M$($?$$$G$9!#e(B

e$B$G!“e(B1.8e$B$Ne(Brb_strtod()e$B$J$s$G$9$,!”:#e(B810e$B9TL$K$"$ke(B

errno = ERANGE;

e$B$,DI2C$5$l$?$?$a$K!"e(B

% ruby18 -e ‘p “.”.to_f’
-e:1: warning: Float . out of range
0.0

e$B$H$$$&!"=>Mh=P$J$+$C$?7Y9p$,=P$k$h$&$K$J$C$F$$$^$9!#e(B
e$B$3$l$C$Fe(B out of range e$B$+e(B?
e$B$H$+;W$o$J$$$G$b$J$$$s$G$9$,!"$3$Ne(B
e$B$^$^9T$-$^$9$+e(B?

e$B$=$l$G$O!#e(B


#5

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B
e$B$A$g$C$HD{@5$HDI5-!#e(B

In message “[ruby-dev:28629] Re: strtod in 1.8.4 stable snapshot”
on May.11,2006 16:03:41, removed_email_address@domain.invalid wrote:
| e$B$G!“e(B1.8e$B$Ne(Brb_strtod()e$B$J$s$G$9$,!”:#e(B810e$B9TL$K$"$ke(B

e$B!V$G!“e(B1.8e$B$Ne(Bruby_strtod()e$B$J$s$G$9$,!”:#!“e(Butil.ce$B$Ne(B810e$B9TL$K$”$k!We(B

e$B$$$m$$$mCQ$:$+$7$$!#e(B

e$B$=$l$G$O!#e(B


#6

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28621] Re: strtod in 1.8.4 stable snapshot”
on Sun, 7 May 2006 16:53:11 +0900, Shin-ichiro HARA
removed_email_address@domain.invalid writes:

|>|1.9.0 e$B$Ne(Butil.ce$B$Ne(Bstrtode$B$r$=$N$^$^;}$C$FMh$k$o$1$K$O$$$+$J$$$s$G$7$g$&$+!#e(B
|>
|>e$B%3!<%I$O$=$N$^$^;}$C$F$-$F$"$C$F!“0c$$$O$J$$$O$:$G$9$,!#e(B
|
|e$B$”$l!":#F|$Ne(Bsnapshote$B$G0c$$$,$"$j$^$9$h!#e(B1.9.0e$B$Ne(Bruby_strtode$B$G$Oe(BpowersOf10
|e$B$H$$$&G[Ns$r;H$C$F$$$k$1$I!"e(B1.8.4e$B$N$G$O$J$$$G$9!#e(B

e$B$"!"$=$&$+!#;d$Ne(B1.9e$B$O<j$,F~$C$F$$$F!"$^$@%3%_%C%H$7$F$$$J$$e(B
e$B$N$G$7$?!#e(BpowersOf10e$B$r;H$C$?$b$N$O;H$C$F$$$J$$$b$N$h$j$bAa$/e(B
e$BL58BBg$KH/;6$9$k$s$G:NMQ$7$?$/$J$$$G$9!#$@$+$i=$@5$9$k$J$i:#e(B
1.8.4 e$B$K$"$k$b$N$r%Y!<%9$K9M$($?$$$G$9!#e(B


#7

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28629] Re: strtod in 1.8.4 stable snapshot”
on Thu, 11 May 2006 16:03:41 +0900, “U.Nakamura”
removed_email_address@domain.invalid writes:

|e$B$G!“e(B1.8e$B$Ne(Brb_strtod()e$B$J$s$G$9$,!”:#e(B810e$B9TL$K$"$ke(B
|
| errno = ERANGE;
|
|e$B$,DI2C$5$l$?$?$a$K!“e(B
|
| % ruby18 -e ‘p “.”.to_f’
| -e:1: warning: Float . out of range
| 0.0
|
|e$B$H$$$&!”=>Mh=P$J$+$C$?7Y9p$,=P$k$h$&$K$J$C$F$$$^$9!#e(B
|e$B$3$l$C$Fe(B out of range e$B$+e(B? e$B$H$+;W$o$J$$$G$b$J$$$s$G$9$,!"$3$Ne(B
|e$B$^$^9T$-$^$9$+e(B?

e$B$&!<$`!"$3$l$O5,3JE*$K4V0c$$$G$9$M!#D>$7$^$9!#e(B