Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0af29bbe4b269450133e84a6a19b34600f7394a0
Ticket: 1561260fffffffffffffffffffffffffffffffff
Problem with big integers
User & Date: sarnold75 on 2006-09-19 07:58:00
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    tcl_platform(byteOrder) = littleEndian
    tcl_platform(machine)   = intel
    tcl_platform(os)        = Windows NT
    tcl_platform(osVersion) = 5.1
    tcl_platform(platform)  = windows
    tcl_platform(threaded)  = 1
    tcl_platform(user)      = Stéphane ARNOLD
    tcl_platform(wordSize)  = 4
    
    ******
    
    I was debugging a math package (in tcllib) named
    math::bigfloat.
    
    I figure that 2**exp * 5**exp equals 10**exp.
    Not in Tcl 8.5a5! (and 8.5a4 either, I guess)
    
    % expr (2**32)*(5**32)
    14058906998405956947534675968
    
    The expected result would be:
    % expr (2**32)*(5**32)
    100000000000000000000000000000000
    
    It seems that expr 5**32 does not provide
    a good result:
    % expr 5**32
    3273344365508751233
    
    A multiple of five should end with the digit 5,
    isn't it?
    
    Strange behavior... I am relying on powers and 
    shifts to perform bigfloat computations.
    
    
  4. foundin changed to: "obsolete: 8.5a5"
  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: "sarnold75"
  10. subsystem changed to: "48. Number Handling"
  11. title changed to: "Problem with big integers"
  12. type changed to: "Bug"