<i>"Inf" not understood in expr</i> status still Open with 5 other changes
by
.
D 2002-07-22T07:54:12
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nanother\sdata\spoint\son\sthis:\n\nTcl\sis\snot\sconsistent\sin\ntreating\sInf\sand\sNan:\n\n%\sexpr\s{"nan"}\ndomain\serror:\sargument\snot\sin\svalid\srange\n%\sexpr\s{nan}\ndomain\serror:\sargument\snot\sin\svalid\srange\n%\sexpr\s{"inf"}\nfloating-point\svalue\stoo\slarge\sto\srepresent\n%\sexpr\s{inf}\nsyntax\serror\sin\sexpression\s"inf"\n\nThe\sdifference\sis\sdue\sto\sline\s1555\sof\ntclParseExpr.c\swhich\sspecially\slooks\sfor\n'n'\sor\s'N'\sto\sgive\sstrtod()\sa\schance\sto\nclaim\sit.\s\s\n\nIt\swould\sbe\smore\sconsistent\sto\seither\ncheck\sfor\s'i'\sand\s'I"\sthere\sas\swell,\sor\sto\ncheck\sfor\snone\sof\sthem.\n\nGiven\sthe\soriginal\sreport\shere,\sthe\sbetter\nchoice\sis\sprobably\sto\scheck\sfor\sboth\nso\sthat\sall\sstring\sreps\sof\sdoubles\sgenerated\nby\sTcl\sget\srecognized\sby\sTcl\sas\sstring\sreps\nof\sdoubles\swith\s[expr]\swithout\squoting.\n
J login dgp
J mimetype text/plain
J title "Inf"\snot\sunderstood\sin\sexpr
J username dgp
K 218000ffffffffffffffffffffffffffffffffff
U dgp
Z 2ffcf4347a621c92079137d53038ab55