Hi Andrew, I had forgotten about that function. Yes, we can use it. The documentation is pretty clear about its use.
Regards, Arjen On 2009-08-25 15:23, Andrew Ross wrote: > On Fri, Aug 21, 2009 at 04:20:29PM +0200, Arjen Markus wrote: >> Hi Andrew, >> >> I looked at the source code for the bindings and I realised that >> currently we do not use tcl_precision or something similar to _return_ >> values from PLplot routines. Instead we simply use %f to format the >> returned number. Up to now that was satisfactory, but the time functions >> return data with high precision. >> >> As a temporary workaround, could you try with a format like %.20f - >> like: >> >> Line 283, 284 in pltclgen.tcl: >> "PLFLT& { >> puts $GENFILE " sprintf( buf, \"%.20f\", $argname($i) );" >> >> (I seem to have added all manner of comments about it - never got around >> to actually implement them. It was not pressing then. I will be glad >> to take care of it myself, once I can comfortably access my computer >> at home again) > > Arjen, > > Rather than using sprintf, is there any reason we can't use the > Tcl_PrintDouble function which will handle tcl_precision for us anyway? > > Andrew > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel