|
From: Vince D. <vi...@sa...> - 2002-10-16 07:52:02
|
In general, this:
[expr $zmin + $i * $step + 0.000001]
should be:
[expr {$zmin + $i * $step + 0.000001}]
to gain advantage of the internal representations (this is for rather
technical reasons I won't go into here), and this may help your problem
with -0.0000
As for the 'floats or doubles' question, Tcl is a full programming
language and contains internal support for ints, longs, floats, doubles,
and even long longs.
Note: somewhere in the old 'tea' branch there may be some code which helps
to turn tclMatrix.c into what Maurice wanted. Really the whole plplot
TclAPI should be changed to use the Tcl_Obj based methods...
cheers,
-- Vince
<http://www.santafe.edu/~vince>
|