Home:ALL Converter>Increase precision in tcl

Increase precision in tcl

Ask Time:2019-12-10T22:29:09         Author:Alaaldeen Eldawie

Json Formatter

How to increase the precision in tcl. I am getting b2 below as -0.000001 whereas the actual value is -7.95553e-007

set b2 [lindex $b1 0]

I tried "set tcl_precision 12" but it did not change anything

Author:Alaaldeen Eldawie,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59269485/increase-precision-in-tcl
yy