Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da29f8ac639aed13dadc2a44b0108e95a249c564
Ticket: 2828631fffffffffffffffffffffffffffffffff
expr return value
User & Date: dgp on 2009-07-29 19:30:19
Changes

  1. closedate changed to: "2009-07-29T12:30:19"
  2. closer changed to: "dgp"
  3. icomment:
    
    
    allow_comments - 1
    
    
    The usual reply is why do you care?
    The 8.5 formats are actually more accurate,
    so if you are doing calculations with the
    values they should be better - a bug fix.
    
    If the issue is something pretty for display,
    that's what [format] is for.
    
    More from the release notes of Tcl 8.5.0,
    http://sf.net/project/shownotes.php?group_id=10894&release_id=562516 :
    
    " * When floating point values are converted to a string representation,
       the conversion is no longer governed by a default value of 12 for
       $::tcl_precision.  The default value is now 0, meaning the shortest
       string representation that when parsed produces precisely the same
       floating point value.  Some scripts that display floating point values
       may begin to see displays like "1.9999999999999998" where "2.0" had
       been displayed before.  Revise the script to explicitly [format]
       values as desired.  As a last resort, [set ::tcl_precision 12] will
       restore compatibility within the current thread, but be aware this
       will also resurrect bugs that the change has fixed."
    
    
    
  4. login: "dgp"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "dgp"