First page Back Continue Last page Overview Image
8.5 Math
[132] tcl_precision – Default 0, ignore!
Internals for floating point rewritten to automatically work with best possible precision.
Now: “… formatted using the smallest number of decimal digits required to distinguish it from the next floating point number above it and the next floating point number below”
set tcl_precision 0
set a [expr 1.00000000000123]
=> 1.00000000000123
set b [expr 1.0]
=> 1.0
expr { $a == $b }
=> 0
expr { $a eq $b }
=> 0