In Tcl 6.x, modify the tclExpr.c module to use %lf instead of %g. In Tcl 7.x, set the global variable tcl_precision instead.