Hi I am using tcl 8.5.
When I do division 1.0/1e-9 i get 999999999.9999999 instead of 1e9.
The same operation on tcl 8.4 works fine.
How to get around this problem to get the correct value/
for {set x 0} {$x<20} {incr x} { puts "$x [expr 1/1e-$x]"}
-----------
OUTPUT
-----------
0 1.0
1 10.0
2...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.