.
D 2002-03-20T16:03:35
J assignee hobbs
J cmimetype text/plain
J comment \nTry\sfollowing\sscript\sunder\sWindow\sNT:\n\nproc\stestDouble\s{}\s{\n\s\s\s\sset\sa0\s[expr\s{double(2.63624325102e-308)}]\n\s\s\s\sset\sb\s\s[expr\s{double(0.19024736769)}]\n\s\s\s\sset\sa\s\s$a0\n\n\s\s\s\sset\scount\s30\n\s\s\s\swhile\s{[incr\scount\s-1]\s>\s0}\s{\n\s\s\s\s\s\s\s\s#\sjust\smake\sa\slose\sits\sdouble\srepr\n\s\s\s\s\s\s\s\s#\sstring\slength\s$a\n\s\s\s\s\s\s\s\sputs\s"a\s=\s$a"\n\s\s\s\s\s\s\s\sset\sa\s[expr\s{$a*$b}]\n\s\s\s\s}\n}\n\na\sis\sdecreasing\suntil\s0.0.\n\nNow\suncomment\sthe\s[string\slength]\sline,\sand\stry\sit\nagain.\sThis\sgives\sthe\serror\smessage:\n\s\scan't\suse\snon-numeric\sstring\sas\soperand\sof\s"*"\n(Is\sit\spossible\sto\shave\s"floating-point\svalue\stoo\nsmall\sto\srepresent"\s?)\n\nThis\swork\sfine\sunder\sLinux.\sCan\sI\sconclude\sthat\smy\nWindows\sNT\sstrtod()\sis\sbuggy\s?\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 11.\sConversions\sfrom\sString
J title Buggy\sWindows\sstrtod()\s?
J type Bug
K 532537ffffffffffffffffffffffffffffffffff
U nobody
Z 4dc2d86e23d515847258aecada7daea0