views:

189

answers:

1

what is the best way to handle big integers in expr command. we know wide in expr.

+4  A: 

As of Tcl 8.5, integers are now Bignums (arbitrary precision)

If you're using an older version (which you've said you are, 8.4.x), you'll need to consider what you need to use the numbers for. Most of the standard commands won't accept Bignums, since it hadn't been added to the core at that time. However, if you're just doing math with them, you might want to take a look at

Lastly, it's worth searching the Tclers Wiki for other options.

RHSeeger
I am using 8.4.16
OliveOne
Is there something missing in this answer? Some other information you need? Never heard anything else from you, nor is it selected as the answer, so was hoping you might provide feedback.
RHSeeger
Sorry... I am working on tcl library for geometrical problems, e.g. finding intersection of geometrical objects. I many cases I need to handle domain errors thrown by expr command. I am thinking to shift on c++. before I just wanted to confirm what I am doing...
OliveOne