Skip to content
Tcl Source Code Artifact [bedca6ca26]
Login

Artifact [bedca6ca26]

Artifact bedca6ca2642d96492ebd1e24e094ee655779f1a:

Ticket change [bedca6ca26] - Ticket [2931407fffffffff|2931407fff] <i>expr.n should document integer division rounding</i> status still Open with 4 other changes by dkf on 2010-01-14 00:30:37.
D 2010-01-14T00:30:37
J icomment It\shas\sto\sdo\swith\sthe\sbehaviour\sof\s%,\swhere\sTcl\sguarantees\sthat\sthe\ssign\sof\sthe\sresult\swill\sbe\sthe\ssame\sas\sthe\ssign\sof\sthe\sright\shand\sside\s(and\ssmaller\sin\smagnitude).\sAdd\sin\sthe\sconstraint\sthat\n\s\s\sX\s-\sX%Y\s=\s(X/Y)*Y\n(which\sis\sa\spretty\ssensible\sconstraint!)\sand\syou\sget\sthe\sbehaviour\sthat\sTcl\srequires\sas\sa\snatural\sconsequence.\n
J login dkf
J mimetype text/plain
J username dkf
K 2931407fffffffffffffffffffffffffffffffff
U dkf
Z fbe4ca641ab294cda50d8da0d12a3136