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