% mini:~/Projects/parrot/languages/tcl mdiep$ tclsh
% set tcl_precision
12
% expr 1/3.0
0.333333333333
% set tcl_precision 17
17
% expr 1/3.0
0.33333333333333331
%
--
Matt Diephouse
http://www.tcl.tk/man/tcl8.5/TclCmd/tclvars.htm#M26
Note "Applications should not change this value" !!
Also, from leo:
17:00 <@leo> mdiep: re #40143: you already have TclFloat.get_string,
replace
the line:
17:00 <@leo> buff = Parrot_sprintf_c(INTERP, "%.
16vg",PMC_num_val(SELF));
17:00 <@leo> with ... "%.*vg", prec, PMC_num_val(SELF));
17:01 <@leo> and set 'int prec' from an appropriate namespace, where
tcl_precision is living
--
Will "Coke" Coleda
wi...@coleda.com