Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e6c6c91309525f243d1be86c0104049fa167b7be
Ticket: 1821241fffffffffffffffffffffffffffffffff
format conversion fails if arg is multiple-precision integer
User & Date: kjnash on 2007-10-27 15:16:38
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The result of an integer calculation using expr may or may not be a multiple-precision integer.
    
    The format command's integer-to-string conversion specifiers %d %i %o %u %x and %X do not give valid results for multiple-precision integers.
    
    Examples:
    
    % set a [expr 0x530a8681a2ece111e52140ad89c6cc965c98ce10]
    474080958589669057752601175750710414374396808720
    % format %d $a
    1553518096
    % format %i $a
    1553518096
    % format %o $a
    13446147020
    % format %u $a
    1553518096
    % format %x $a
    5c98ce10
    % format %X $a
    5C98CE10
    %
    
    
  4. foundin changed to: "obsolete: 8.5b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kjnash"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to:
    format conversion fails if arg is multiple-precision integer
    
  12. type changed to: "Bug"