Skip to content
Tcl Source Code Artifact [4855984250]
Login

Artifact [4855984250]

Artifact 4855984250a48deb13493cdf1c06e397b4d256e8:

Ticket change [4855984250] - Ticket [218000ffffffffff|218000ffff] <i>&quot;Inf&quot; not understood in expr</i> status still Open with 5 other changes by dgp on 2002-07-22 07:54:12.
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