Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4cf5485945ca7abe9adea561bc462530c63ea583
Ticket: 1893815fffffffffffffffffffffffffffffffff
tcl::mathfunc commands and non-canonical string reps
User & Date: zbigniew_b on 2008-02-14 15:48:35
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    A "live example":
    
    tclsh8.5 [~/tmp]set a -0
    -0
    tclsh8.5 [~/tmp]puts  [::tcl::mathfunc::int $a]
    0
    tclsh8.5 [~/tmp]puts  [::tcl::mathfunc::abs $a]
    -0
    
    
    ...above explains the problem. But, as the others mentioned already:
    
    % expr {abs(-0)}
    0
    
    ...works fine.
    
  4. foundin changed to: "obsolete: 8.5.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "zbigniew_b"
  10. subsystem changed to: "48. Number Handling"
  11. title changed to: "A bug in ::tcl::mathfunc::abs"
  12. type changed to: "Bug"