Aug 6, 2007 #1 homerjj Programmer Aug 6, 2007 3 GB WHy when i run the following command do i get the following error. " tcl> expr 20000000000 Error: integer value too large to represent" But when i use a larger number it works fine.
WHy when i run the following command do i get the following error. " tcl> expr 20000000000 Error: integer value too large to represent" But when i use a larger number it works fine.
Aug 6, 2007 #2 Bong Programmer Dec 22, 1999 2,063 US I don't run into your problem: Code: % expr 20000000000 20000000000 % expr 20000000000*4 80000000000 % I'm using Tcl 8.4.5 on Windows 2000. _________________ Bob Rashkin Upvote 0 Downvote
I don't run into your problem: Code: % expr 20000000000 20000000000 % expr 20000000000*4 80000000000 % I'm using Tcl 8.4.5 on Windows 2000. _________________ Bob Rashkin
Aug 6, 2007 Thread starter #3 homerjj Programmer Aug 6, 2007 3 GB Thanks for the reply but i didnt explain it very well. Here is another example of the inconsistencey tcl> expr 2147483648 -2147483648 Surely this is wrong and occurs for numbers between 2^31 and 2^-32. Any ideas as to why this occurs? Upvote 0 Downvote
Thanks for the reply but i didnt explain it very well. Here is another example of the inconsistencey tcl> expr 2147483648 -2147483648 Surely this is wrong and occurs for numbers between 2^31 and 2^-32. Any ideas as to why this occurs?
Aug 6, 2007 Thread starter #4 homerjj Programmer Aug 6, 2007 3 GB Here's another:- tcl>expr 4294967290 -6 Why? Upvote 0 Downvote
Aug 6, 2007 #5 Bong Programmer Dec 22, 1999 2,063 US still: Code: % expr 2147483648 2147483648 % expr 4294967290 4294967290 % _________________ Bob Rashkin Upvote 0 Downvote
still: Code: % expr 2147483648 2147483648 % expr 4294967290 4294967290 % _________________ Bob Rashkin