Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bedca6ca2642d96492ebd1e24e094ee655779f1a
Ticket: 2931407fffffffffffffffffffffffffffffffff
expr.n should document integer division rounding
User & Date: dkf on 2010-01-14 00:30:37
Changes

  1. 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.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"