Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 08373c98ff1c7b63961381c20d0fbaa7fe6af550
Ticket: 1268430fffffffffffffffffffffffffffffffff
pow(2,50) shouldn't be euqal to pow(2,52)
User & Date: uring on 2005-08-24 15:10:33
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    
    # use tcl8.5.a3 and evaluate the following
    
    # we all agree: pow(2,50) is not equal to pow(2,52):
    puts [expr pow(2,50) == pow(2,52)] ;# returns 0
    
    # but if everything is a string it may happen
    puts [string equal [expr pow(2,50)] [expr pow(2,52)]]
    ,# returns 1
    
    -----
    
    the trouble seems to come up with power >=52.
    
    each 2^^i is equal to 2^^(i-2), if i >= 52,
    
    - and if the value converted to a string
    - and if tcl_precision == 0
    
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.5a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "uring"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "pow(2,50) shouldn't be euqal to pow(2,52)"
  11. type changed to: "Bug"