Re: [TCLCORE] The end for Tcl_PrintDouble in Tk?
by Joe English other posts by this author
May 20 2009 10:08AM messages near this date
Re: [TCLCORE] The end for Tcl_PrintDouble in Tk?
|
Re: [TCLCORE] The end for Tcl_PrintDouble in Tk?
Jeff Hobbs wrote:
> On 20/05/2009 7:26 AM, Donal K. Fellows wrote:
> > That sort of shortening looks good, but you might also consider using %g
> > instead of %f so that very large text and canvas widgets can still scroll.
>
> I tried that, which causes test failures of a different variety (you get
> "1"/"0" instead of "1.0"/"0.0").
See also #2112563. The test suite *used* to expect "1" / "0",
and when #2112563 was fixed the test suite had to be updated to
expect "1.0" / "0.0" instead.
This is arguably a bug in the test suite.
> Don noted that that could cause issues
> with expr as dividing by float 0.0 (non-error Inf) has different
> behavior than int 0 (error).
My 2c: I don't think it matters *which* error you get if
you divide by zero. [$sb set Inf Inf] is going to do the wrong
thing anyway.
--Joe English
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Jeff Hobbs
Joe English
dgp
Jeff Hobbs
Joe English
Michael Kirkham
Joe English
Jeff Hobbs
|