.
D 2010-12-02T18:02:03
J icomment >Setting\sstatus\sto\s"pending\s-\sinvalid"\n\nWell,\sI\salready\sspent\stoo\smuch\stime\son\sthis,\sand\sforced\sthe\ssame\sto\ssome\sother\speople.\nSorry\sabout\sthat.\sHere\smy\sconclusion,\sfor\sthe\sinterested.\n\nFor\smore\sinformation,\sSee:\s<http://www.validlab.com/754R/drafts/archive/2006-10-04.pdf>\n\nAfter\sreading\sthis\s(and\sthe\swiki\sabout\sit),\sI\scome\sto\sthe\ssame\sconclusion:\n\n>A\sNaN\smay\salso\scarry\sa\spayload,\sintended\sfor\sdiagnostic\sinformation\sindicating\n>the\ssource\sof\sthe\sNaN.\sThe\ssign\sof\sa\sNaN\shas\sno\smeaning,\sbut\sit\smay\n>be\spredictable\sin\ssome\scircumstances.\n...\n>Conversion\sof\sa\squiet\sNaN\sin\sinternal\sformat\sto\san\sexternal\scharacter\ssequence\n>shall\sproduce\sa\slanguage\sdefined\sone\sof\s“nan”\sor\sa\ssequence\sthat\sis\sequivalent\n>except\sfor\scase\s(e.g.,\s“NaN”),\swith\san\soptional\spreceding\ssign.\n\n>Languages\sshould\sprovide\san\soptional\sconversion\sof\sNaNs\sin\sinternal\sformat\sto\n>external\scharacter\ssequences\sthat\sappends\sto\sthe\sbasic\sNaN\scharacter\ssequences\n>a\ssuffix\sthat\scan\srepresent\sthe\sNaN\spayload\s(see\s8.2).\sThe\sform\sand\sinterpretation\n>of\sthe\spayload\ssuffix\sis\slanguage\sdefined.\sThe\slanguage\sshould\srequire\sthat\sany\ssuch\n>optional\soutput\ssequences\sbe\srecognized\sas\sinput\sin\sconversion\sof\sexternal\scharacter\n>sequences\sto\sinternal\sformats.\n\nSo,\sthere\sis\sonly\sone\sNaN,\sthe\sextra\sbits\s(payload)\sand\sthe\ssign\sare\soptional.\sExternal\nsoftware\sshould\snot\sgenerate\sa\snegative\ssign,\ssince\sit\shas\sno\smeaning\sit\sshould\shave\nused\sthe\spayload\sfor\sthat.\sBut\sthe\sparser\sis\srequired\sto\saccept\san\soptional\spayload\sas\nvalid\sNaN!\sThis\smeans,\sthe\sTcl\snumeric\sparser\sis\sconforming\sto\sIEEE754.\sChanging\sthat,\nwould\sinterpret\sthe\ssign\sas\spart\sof\sthe\spayload,\swhich\sis\snot\sa\sgood\sidea.\n\nRegards,\n\s\s\s\s\s\s\sJan\sNijtmans\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3105247fffffffffffffffffffffffffffffffff
U nijtmans
Z f695ae294583f18c4695a4055abcf8e4