Skip to content
Tcl Source Code Artifact [d9d2e10898]
Login

Artifact [d9d2e10898]

Artifact d9d2e1089801e3807abf3270f4e0818f55126711:

Ticket change [d9d2e10898] - Ticket [1340260fffffffff|1340260fff] <i>Simplify round() implementation in expr cmd</i> status still Closed with 4 other changes by dgp on 2005-11-02 02:10:15.
D 2005-11-02T02:10:15
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\nexpr\s{double(.)}\sconverts\sto\sa\ndouble-precision\sfloating\spoint\nvalue,\sand\ssuffers\sthe\sloss\sof\nprecision\scompared\swith\sa\n64-bit\sinteger\sthat\simplies.\n\nIn\sthese\sexamples,\sthe\snearest\ndouble\svalue\sto\s0x7fffffffffffffff\nis\s1.0\s*\s2**63,\sor\s9223372036854775808.0\n\nConvert\sthat\sback\sto\sinteger\susing\nentier(.)\sto\sget\s9223372036854775808\n\nConvert\sto\sinteger\sand\struncate\sto\s\nwide\sinteger\srange\susing\swide(.),\sand\nget\sthe\sresults\syou\sreport.\n\nPehaps\s"odd"\sat\sfirst\sglance,\sbut\nI\sthink\scorrect\sresults.\n
J login dgp
J mimetype text/plain
J username dgp
K 1340260fffffffffffffffffffffffffffffffff
U dgp
Z 848a3b474c896e90ec9d38e81d8c4ab6