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 >> perl5-porters
perl5-porters
sprintf %.g broken in bleadperl
by Enache Adrian other posts by this author
Nov 24 2003 7:08AM messages near this date
Smoke [5.9.0] 21780 FAIL(c) bsd/os 4.1 (i386/1 cpu) | Re: sprintf %.g broken in bleadperl
On a -Duselongdouble perl:

$ perl -le 'printf "%.40g ", 0.01; print'
0.009999999999999999999796712092658967918624 
$ perl -le 'printf "%.40g", 0.01; print'
0.0100000000000000002082

Regards,
Adi
Thread:
Enache Adrian
Rafael Garcia-Suarez
Ilya Zakharevich
Yitzchak Scott-Thoennes
Enache Adrian
Rafael Garcia-Suarez
Ilya Zakharevich
Yitzchak Scott-Thoennes
Ilya Zakharevich
Andy Lester

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