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.

Before: string equality is not value equality. From the TIP

set tcl_precision 12

=> 12

set a [expr 1.00000000000123]

=> 1.0

set b [expr 1.0]

=> 1.0

expr { $a == $b }

=> 0

expr { $a eq $b }

=> 1