Skip to content
Tcl Source Code History Of Ticket 1561260fffffffff
Login

History Of Ticket 1561260fffffffff

Artifacts Associated With Ticket 1561260fffffffff

  1. Ticket change [0af29bbe4b] (rid 113907) by sarnold75 on 2006-09-19 07:58:00:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.5a5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "sarnold75"
    10. subsystem initialized to: "48. Number Handling"
    11. title initialized to: "Problem with big integers"
    12. type initialized to: "Bug"
  2. Ticket change [3f60e9036a] (rid 121443) by dgp on 2006-09-19 21:55:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Confirmed:
      
      % expr 5**27  
      7450580596923828125
      % expr 5**28
      359414837200037393
      
      I'm worried this might be
      a problem in libtommath.
      Investigating...
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [44e22f08b0] (rid 116782) by dkf on 2006-09-19 22:11:54:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Looks like a problem at the boundary between 64-bit and
      arbitrary precision.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [e92ded6e4b] (rid 104770) by dgp on 2006-09-19 22:58:24:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      yep, overflow detection is
      a complete botch.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [6b3df26771] (rid 128285) by dgp on 2006-09-19 23:31:57:

    1. closedate changed to: "2006-09-19T16:31:57"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Fixed by removing all the
      broken "clever" attempts to
      contain these calculations
      in native types.  All non-trivial
      exponentiation calculations
      now done in bignums.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"