Overview
| Artifact ID: | 0af29bbe4b269450133e84a6a19b34600f7394a0 |
|---|---|
| Ticket: | 1561260fffffffffffffffffffffffffffffffff
Problem with big integers |
| User & Date: | sarnold75 on 2006-09-19 07:58:00 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.5a5"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "sarnold75"
- subsystem changed to: "48. Number Handling"
- title changed to: "Problem with big integers"
- type changed to: "Bug"