Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c63cde05375ba15ab7369becf5437de3dd27750f053652a2c190f5f5d665986c
Ticket: 2dff98e0791720bdde656d47762553c1089684a4
format %A garbles negative, padded and infinite values
User & Date: jan.nijtmans on 2026-10-17 06:54:38
Changes

  1. assignee changed to: "aku"
  2. closer changed to: "nobody"
  3. comment changed to:
    <nowiki>[format %A]</nowiki> overwrites the second character of the result with "x", assuming that it starts with "0X":
    
    <verbatim>
    format %A -1.5    ;# -xX1.8p+0
    format %+A 1.0    ;# +xX1p+0
    format %10A 1.5   ;#  x0X1.8p+0
    format %A Inf     ;# IxF
    </verbatim>
    
    Only plain positive values come out right (0x1.8p+0). The code came with %a/%A in [5cfe15b5d6].
    
  4. icomment:
    +1
    
    Please go ahead
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"