Luc <
[email protected]d> wrote:
Hi.
$ set ::tcl_precision 2
Note this big warning from the documentation:
tcl_precision
This variable controls the number of digits to generate when
converting floating-point values to strings. It defaults to 0.
**Applications should not change this value; it is provided for
compatibility with legacy code.**
2
$ expr {1.08688 - 1.08684}
4e-05
$ set ::tcl_precision 17
17
$ expr {1.08688 - 1.08684}
4.0000000000040004e-05
Why don't I just get 0.00004?
https://0.30000000000000004.com/
If you want a particular number of decimal digits when converting to a
string, use [format] and the %f format method.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)