Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: f91d3ba7f8f86a93ea07612d2e77dd4b37fa2584
Ticket: cb7aac6f2c145538476e01df27213e2d2e9bc384
Alternate float format %#.0f returns "0." for "0.0"
User & Date: oehhar 2015-08-31 09:09:27
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    I compiled the current trunk with VC6 and VC14 on Win 8.1 64 and got new test failures.
    
    The test condition "eformat" is true on the VC14 compiled version and not on the VC6 compiled version.
    
    This shows up new test errors, which fail on VC6 to, but don't show up as the tests are not executed (verified manualy in the console).
    
    Specially the result "0." for %#.0f" puzzels me why I have chosen it as subject for the ticket.
    
    The test errors are:
    <verbatim>
    ==== format-6.3 floating-point zeroes FAILED
    ==== Contents of test case:
    
        format "%#.4e %#.4f %#.4g" 0.0 0.0 0.0 0.0
    
    ---- Result was:
    0.0000e+00 0.0000 0.0000
    ---- Result should have been (exact matching):
    0.0000e+00 0.0000 0.000
    ==== format-6.3 FAILED
    
    ---- format-6.4 start
    ---- format-6.5 start
    
    
    ==== format-6.5 floating-point zeroes FAILED
    ==== Contents of test case:
    
        format "%#.0e %#.0f %#.0g" 0.0 0.0 0.0 0.0
    
    ---- Result was:
    0.e+00 0. 0.0
    ---- Result should have been (exact matching):
    0.e+00 0. 0.
    ==== format-6.5 FAILED
    </verbatim>
    
    -Harald
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Alternate float format %#.0f returns "0." for "0.0"
    
  16. type changed to: "Bug"