Artifact
952af8555afb0163facc1e681a4923de0f75c25d:
Ticket change
[952af8555a]
- New ticket
[218954ffffffffff|218954ffff] <i>Floating point 'for' loops - value of 0 has significant non </i>.
by
nobody on
2000-10-26 01:08:34.
D 2000-10-26T01:08:34
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3083\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-10-11'\nLastModified:\s'1999-11-11'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\s98\nOSVersion:\salso\sLinux\sRedhat\s5.0+\nMachine:\sX86\nFixedDate:\s'1999-11-11'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nName:\nGail\n\nReproducibleScript:\n%\sfor\s{set\si\s-0.4}\s{$i<0.1}\s{set\si\s[expr\s$i\s+\s0.10]}\s{puts\s$i}\n\s\s\s\s-0.4\n\s\s\s\s-0.3\n\s\s\s\s-0.2\n\s\s\s\s-0.1\n\s\s\s\s-2.77555756156e-017\n\s\s\s\s0.1\n\nObservedBehavior:\nThe\svalue\sof\s0\sin\sthe\s'for'\sloop\shas\ssignificant\snon-zero\sdigits.\sLoops\n\s\s\s\sthat\stest\sfor\s0.0\sto\sterminate\stherefore\sdont\sterminate.\n\s\s\s\sTermination\sis\salso\snot\scorrect\sin\sthe\sabove\sexample,\sthe\sloop\sshould\n\s\s\s\sstop\sbefore\soutputting\s1.0.\n\s\s\s\sHappens\son\sintel\sprocessors\s(Pentium)\sunder\sLinux\sand\sMS\swindows\sTcl.\n\nDesiredBehavior:\nNo\ssignificant\snon-zero\sdigits\safter\sthe\srequired\snumber\sof\sdecimal\n\s\s\s\splaces.\n\n\n\nThis\sbounds\schecking\swas\sadded\sbefore\s8.2.\s\n--\s11/11/1999\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Floating\spoint\s'for'\sloops\s-\svalue\sof\s0\shas\ssignificant\snon\s
J type Bug
K 218954ffffffffffffffffffffffffffffffffff
U nobody
Z 34cb2a0723831bde09c4bd76155e4e64