ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved