set 32mod_val [expr 256%4294967296];
The above expression returns a message saying that the value is very large. Is there any ther way we can find the answer for this expression?
The reason is 4294967296 is too large to be represented as a 32-bit integer. If you really need make calculations with large numbers, you may get the Mpexpr package (multiple precision arithmetic), installed in your system, then do
package require Mpexpr
set 32mod_val [mpexpr 256%4294967296]
Anyway, the answer for this simple expr is 256
(the remainder of this particular division, of course)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.