Skip to content
Tcl Source Code Artifact [9e94d53f56]
Login

Artifact [9e94d53f56]

Artifact 9e94d53f56954d2da201d272ff4bc4dea921d3a9:

Ticket change [9e94d53f56] - New ticket [218430ffffffffff|218430ffff] <i>error in expr</i>. by nobody on 2000-10-26 00:57:31.
D 2000-10-26T00:57:31
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6011\sBug\nVersion:\s8.3.1\nSubmitDate:\s'2000-07-14'\nLastModified:\s'2000-07-17'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sAll\nOSVersion:\sAIX\sMac\sWIn98\sSuSE\sLinux\s6.4\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-07-17'\n\n\nName:\nAlexander\sSchoepe\n\nCustomShell:\nno\n\nReproducibleScript:\nexpr\sint(19.49\s*\s100)\s%\s10\n\nDesiredBehavior:\nresult\sshould\sbe\s9\sbut\sexpr\sreturns\swith\s8\n\n\n\nAs\shas\sbeen\sdiscussed\son\scomp.lang.tcl,\sthis\sis\sreally\sa\s"feature"\sof\show\sfloating-point\snumbers\sare\srepresented\son\sa\sparticular\splatform.\s\sAs\sDon\sPorter\ssaid:\n\nThe\sJedi\sseeks\snot\sexact\sresults\sfrom\sfloating\spoint\soperations.\n\n%\sexpr\sint(19.49\s*\s100)\s%\s10\n8\n%\sexpr\sint(19.49\s*\s100)\n1948\n%\sexpr\s19.49\s*\s100\n1949.0\n%\sset\stcl_precision\s17\n17\n%\sexpr\s19.49\s*\s100\n1948.9999999999998\n\nEvery\sprogrammer\seventually\slearns\sthis\slesson,\sbut\sit's\snot\sa\nbug,\snor\sa\sdifficulty\sspecific\sto\sTcl.\n\n---\n\s\s\sEric\sMelski\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sThe\sOther\sTcl\sGuy\n\s\s\sericm\sat\sajubasolutions.com\s\s\s\s\s\s\s\s\s\s\s\sAjuba\sSolutions\n\n--\s07/17/2000\sericm\n\n
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title error\sin\sexpr
J type Bug
K 218430ffffffffffffffffffffffffffffffffff
U nobody
Z a01f6c3378b61c6662b48edb641c015a