Skip to content
Tcl Source Code Artifact [0734b126e0]
Login

Artifact [0734b126e0]

Artifact 0734b126e00030e404293c6622508fafa6808b77:

Ticket change [0734b126e0] - Ticket [3105247fffffffff|3105247fff] <i>-NaN?</i> status still Open with 4 other changes by kennykb on 2010-11-29 20:47:53.
D 2010-11-29T20:47:53
J icomment Why\sdo\swe\shave\sto\schange\sit?\n\nThe\sexisting\sbehaviour\sis\s*not*\snew\s-\sit's\sbeen\sin\sthe\scode\s(and\stest\ssuite\s-\sin\sbinary.test)\ssince\sbefore\s8.5.0.\sThe\stests\sin\sutil.test,\sit\sturns\sout,\sare\sa\sduplication\sof\sthe\sones\sin\sbinary.test\s(They\sshould\sbe\sin\sboth\splaces\s-\sthe\sone\sis\schecking\sthat\sthe\sresult\sis\sformatted\scorrectly,\sthe\sother\sthat\s[binary]\sdoesn't\serror\sout\sreturning\sit.)\sThe\sformat\sused\sby\sthe\scode\sfor\snon-canonical\s(I\swon't\ssay\s"non-conforming":\sIEEE754\sprovides\sfor\sthem)\sNaN's\sexactly\sfollows\sthat\sused\sby\sDavid\sGay's\s'dtoa.c'\scited\sin\sthe\sTIP\sas\sthe\ssource\sof\sthe\salgorithms.\s(The\scode\swas\srewritten\sbecause\sit\swas\snot\sup\sto\sTcl's\susual\scoding\sstandard.)\sIt\sisn't\ssomething\sthat\sthe\sTcl\steam\sinvented.\n\nI\sdon't\sunderstand\sthe\smotivation\sfor\schanging\sit\snow,\syears\safter\srelease,\sto\ssomething\sthat\s*is*\sa\slocal\sinvention,\ssimply\sbecause\sthe\sTIP\swas\sinadvertently\ssilent\son\sthe\streatment\sof\sthe\ssign\sbit\sof\sa\snon-canonical\sNaN.\s(Which\swas\san\seditorial\serror,\sI\sassure\syou:\sI\swrote\sthe\soriginal\sdraft\sof\sthe\sTIP\sand\ssimply\sforgot\sto\smention\sthe\ssign\sbit.)\n
J login kennykb
J mimetype text/plain
J username kennykb
K 3105247fffffffffffffffffffffffffffffffff
U kennykb
Z f6fdfdccc87f6103407240e2a2ff82e3