Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5e8b7ff76b9902adbbe29845149e9eed9719e14e
Ticket: 218512ffffffffffffffffffffffffffffffffff
"format" does not handle floating point numbers consistently
User & Date: nobody on 2000-10-26 01:01:30
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 788 Bug
    Version: 8.0
    SubmitDate: '1998-11-02'
    LastModified: '1999-09-15'
    Severity: LOW
    Status: Released
    Submitter: stanton
    ChangedBy: hobbs
    RelatedBugIDs: 916
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '1999-09-15'
    FixedInVersion: 8.1.1
    ClosedDate: '2000-10-25'
    
    
    There are a number of tests in the Tcl test suite that are flagged as "eformat" to indicate that they will fail on Windows under Visual C++ (there are several in format.test).  These failures are due to a questionable implementation of sprintf by Microsoft.  In particular %g behaves badly if the leading digit is a zero (it displays too many significant digits), and %e %f %g all display too many digits for small exponent values.
    
    
    
    The only real solution is to have our own implementation of sprintf, but it is hard to write a portable floating point implementation.
    --
    id 916 has a fix for MSVC, but it is not really a problem serious
    enough to worry about. 
    -- 08/14/1999 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.0"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    "format" does not handle floating point numbers consistently
    
  11. type changed to: "Bug"