Overview
| Artifact ID: | bedca6ca2642d96492ebd1e24e094ee655779f1a |
|---|---|
| Ticket: | 2931407fffffffffffffffffffffffffffffffff
expr.n should document integer division rounding |
| User & Date: | dkf on 2010-01-14 00:30:37 |
Changes
- icomment:
It has to do with the behaviour of %, where Tcl guarantees that the sign of the result will be the same as the sign of the right hand side (and smaller in magnitude). Add in the constraint that X - X%Y = (X/Y)*Y (which is a pretty sensible constraint!) and you get the behaviour that Tcl requires as a natural consequence.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"