Skip to content
Tcl Source Code Artifact [2c97a15461]
Login

Artifact [2c97a15461]

Artifact 2c97a15461e9b08d2e2a78f6d3d63ea1cd78003e:

Ticket change [2c97a15461] - Closed ticket [410043ffffffffff|410043ffff]: <i>&quot;if&quot; does not evaluate same as &quot;expr&quot;</i> plus 8 other changes by dkf on 2001-03-20 23:43:47.
D 2001-03-20T23:43:47
J closedate 2001-03-20T16:43:47
J closer dkf
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nThis\sproblem\s(a\sknown\sfeature\sof\sTcl\sthat\sis\sunlikely\sto\never\sbe\saltered\sfor\sa\shost\sof\sdeep\sreasons)\sstems\sfrom\sthe\nfact\sthat\s0.1\sis\snot\sa\sprecisely\srepresentable\sfloating\npoint\snumber\sand\sthat\sarguments\sto\s[expr]\sare\s[concat]enated\nbefore\sevaluation.\sRerun\sthe\sscript\swith\stcl_precision\sset\nto\s17,\sor\swith\sthe\sexpression\sto\spass\sto\s[expr]\sin\s{braces},\nand\syou'll\sget\sagreement\sbetween\sthe\s"bare\sif"\sand\sthe\s"if\nwith\sexpr".\n\nIf\sthis\smatters\svery\smuch,\suse\sfixed-point\sarithmetic\ninstead.\n
J login dkf
J mimetype text/plain
J resolution Invalid
J status Closed
J title "if"\sdoes\snot\sevaluate\ssame\sas\s"expr"
J username dkf
K 410043ffffffffffffffffffffffffffffffffff
U dkf
Z ab068b624fbc11f3e823b7d1eb1c6fe8