From: <dg...@ni...> - 2009-05-20 03:46:46
|
Quoting Jeff Hobbs <je...@ac...>: > objPtr = Tcl_ObjPrintf("%s %f %f", entryPtr->scrollCmd, first, last); > ... > ... where "scrollCmd 0.0 1.0" was expected, it now receives > "scrollCmd 0.000000 1.000000". I think %f is the wrong tool for the job. In your example, the differences are mere formatting matters, but try again with the values 0.0000001 and 0.0000004 . The precision of %f formatting -- whether you take the default of 6, or whether you specify something else -- is the number of digits printed after the decimal point, and takes no account of significant digits. I think you will see the first and last values collapse into one value 0.000000 and I'd expect scroll commands to be unhappy with that. DGP |