Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e3305feb5cd5f5b2e07ca6abc07f01e3ca5d7431
Ticket: 3349507fffffffffffffffffffffffffffffffff
Incorrect rounding converting bignum to double
User & Date: kennykb on 2011-07-02 21:26:16
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Converting bignums to double is supposed to do 'round to even' so that the rounding will be unbiased. It does 'round up' always.
    
    Example:
    
    % expr double(1[string repeat 0 23])
    1.0000000000000001e+23
    
    The given number lies precisely between two adjacent 'double' values, and is incorrectly converted rounding up.
    
    Expect a fix today or tomorrow. I know what's going on.
    
  4. foundin changed to: "obsolete: 8.5.10"
  5. is_private changed to: "0"
  6. priority changed to: "7 High"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kennykb"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "Incorrect rounding converting bignum to double"
  12. type changed to: "Bug"