pow(2,50) shouldn't be euqal to pow(2,52)
Closed / Fixed1268430fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-08-24 15:10:33
# 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
kennykb Closed ticket [1268430fff].
[History diff]2005-08-24 22:21:33
Log in (anonymous is fine) to add a comment.