Re: [tkined] counter32:"integer value too large to represent"

From: Eddie Corns (E.Corns@ed.ac.uk)
Date: Wed Mar 01 2000 - 12:45:03 MET


I came across this in my searching but I haven't actually tried it yet.

(nobody has sent me any viruses (virii?))

Eddie

------------------------------------------------------------

Mpexpr

Mpexpr is a multiple precision math package for Tcl. Mpexpr adds two new commands
to Tcl: mpexpr and mpformat. mpexpr is used just like Tcl's expr command, except it
allows you to calculate with ridiculously large numbers. Or ordinary average size
numbers, without the binary floating point to decimal floating point conversion
problems that expr sometimes experiences.

For example:

% set mp_precision 50
50
% mpexpr 2.0/3.0
0.66666666666666666666666666666666666666666666666667
% mpexpr atan(1.0)*4 ;# common pi approximation
3.14159265358979323846264338327950288419716939937511
% mpexpr fact(34) ;# factorial
295232799039604140847618609643520000000

Mpexpr is based on Tcl's expr command, and David Bell's fine Calc program, which is
now enhanced and maintained by Landon Curt Noll.

The current release of Mpexpr is 1.0, and can be found at
http://www.NeoSoft.com/tcl/ftparchive/sorted/math/Mpexpr-1.0/1.0/mpexpr-1.0.tar.gz
. Here is the README. Mpexpr supports Tcl 8.0

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:38 MET