Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 93fe7b7ea762b9136eb5dfc113a698558e4820e7
Ticket: 2954959fffffffffffffffffffffffffffffffff
expr abs(0.0) is -0.0
User & Date: nijtmans on 2010-02-22 22:06:23
Changes

  1. icomment:
    >In the 'long' case, if you've got -0 then you're on a ones-complement
    >machine and we no longer guarantee Tcl to work right. :-)
    
    What happened, is that:
    expr {abs(0x0)}    -->    0
    expr {abs(0x1)}    -->    0x1
    I would at least expect the two answers to
    have the same form.... That's what this fix
    is about in the "long" case
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"