.
D 2023-04-25T09:35:27.972
J icomment Thanks\sfor\sthe\scomment.\r\nThanks\sto\sBrian\sto\stake\sit\sand\swork\son\sit:\scheck-in:\s[62eaef043c]\s,\sbranch:\s[bug-fa00fbbbabe].\r\n\r\nHere\sare\smy\sperhaps\sunrelated\scomments:\r\n\r\nDisplaying\sof\sa\sdouble\sin\sdecimal\sis\sdifficult\sand\smay\shave\sthe\seffects\sseen\shere.\sThis\smight\sbe\sintentional,\sas\sit\smight\sbe\smore\sexact\son\sthe\sdouble\slevel.\r\n\r\nSo,\slets\stry\smanually\swith\sTCL\s8.6.13:\r\n\r\n%\sexpr\s{4\s+\s22\s*\s0.1}\r\n6.2\r\n%\sexpr\s{4\s+\s23\s*\s0.1}\r\n6.300000000000001\r\n%\sexpr\s{4\s+\s24\s*\s0.1}\r\n6.4\r\n\r\nSo,\sthe\scalculation\sis\sok.\sOnly\sthe\sdisplayed\snumbers\sare\s"ugly"\sor\s"surprising",\sbut\sthis\sis\sdue\sto\sthe\sdisplay\sas\sdecimal\sof\sthe\sdouble\sdata\stype.\r\n\r\nI\swould\sat\sleast\sthink\stwice,\sif\schanging\sthis\son\sthe\sdisplay\sside\sis\san\simprovement.\s6.3\sis\snot\sequal\sto\s6.300000000000001\r\n\r\nSo,\sthe\sresult\sof\sexpr\s{4\s+\s23\s*\s0.1}\swill\snot\sbe\sany\smore\sequal\sto\sthe\slseq\selement.\r\n\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K e5f06285ded599f7fbb9951374b54867eeeb6508
U oehhar
Z d1ae323c84ff8698a96ee535dad6e14f