Skip to content
Tcl Source Code Artifact [72bdee3642]
Login

Artifact [72bdee3642]

Artifact 72bdee3642e990f0eb942d397aefe1f16ccb1213:

Ticket change [72bdee3642] - Closed ticket [1275043fffffffff|1275043fff]: <i>expr round(0.5) returns no more 1</i> plus 8 other changes by kennykb on 2005-08-29 23:46:29.
D 2005-08-29T23:46:29
J closedate 2005-08-29T16:46:29
J closer kennykb
J foundin obsolete:\s8.4.11
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\nThank\syou\sfor\sthis\sreport.\n\nYou\sare\sright\sthat\sa\sgratuitous\schange\sof\sthe\nsemantics\sto\s"round\sto\seven"\sshould\sbe\savoided\n(perhaps\sa\s"nearbyint"\sfunction\sshould\sbe\ssupplied\nto\sgive\sthose\ssemantics).\n\nIn\saddition\sto\syour\sreported\serror,\swhile\sdesigning\nthe\stest\scases\sfor\sthis\sproblem,\sI\sdiscovered\sthat\nexpr\sround(0.49999999999999994)\sgave\s1.0\sin\s8.4.\nThis\slast\sis\ssurely\sa\sbug\s(and\sapplies\sto\sany\snumber\nwhose\sfractional\spart\sdiffered\sfrom\s0.5\sby\s1/2\sulp).\nI\sadded\sa\stest\scase\sfor\sthat\sproblem\sas\swell,\sand\nbackported\sthe\swhole\smess\sto\s8.4\sas\swell.\n
J login kennykb
J mimetype text/plain
J resolution Fixed
J status Closed
J username kennykb
K 1275043fffffffffffffffffffffffffffffffff
U kennykb
Z 6ab293a869e2170989c4abfccbc026de