Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cb9f600deb5a567dd9491a384a4399fbc944b84b7731c380a8ff611b533030c2
Ticket: e3dcab1d14c0bcc5938ee570b2e0da208bff9239
Tcl aborts with wrong digits
User & Date: kbk on 2023-01-22 02:27:07
Changes

  1. closedate changed to: "2459966.60216491"
  2. closer changed to: "kbk"
  3. icomment:
    There was an off-by-one in three (closely related) places in tclStrToD.c that affected 15<=tcl_precision<=18 for certain double values that were very close to overflowing intermediate results. It would take more work to explain exactly which values are affected, but 2**-87 is definitely one of them, and there's a suitable test case for 8.x.
    
    Tcl 9.x has the bug fixed, but the behaviour appears to be untestable at script level at the moment. I'll look into tidying that at some point.  If we ever get around to using Tcl_DoubleDigits in Tcl_AppendFormatToObj (which would probably be a good idea), then we'll need the same code.
    
  4. login: "kbk"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"