Hi All I have great issues
1) perl -e '$a=0.123451005;$a=sprintf("%.8f",$a);print"=$a\n";' Output=0.12345101 2) perl -e '$a=5.123451005;$a=sprintf("%.8f",$a);print"=$a\n";' Output=5.12345100 Here 1 one ging correct result but the second one wrong result For second one result should be 5.12345101 but it is giving 5.12345100 May I know why it behabe So Perl says for commercial data it does not work for some values Let me know if you have any other function that do round of with great accuracy Thanks in advance Ajay -----Original Message----- From: beginners-h...@perl.org [mailto:beginners-h...@perl.org] Sent: Friday, August 21, 2009 3:43 PM To: Ajay Kumar Subject: WELCOME to beginners@perl.org Hi! This is the ezmlm program. I'm managing the beginners@perl.org mailing list. I'm working for my owner, who can be reached at beginners-ow...@perl.org. Acknowledgment: I have added the address aku...@securities.com to the beginners mailing list. Welcome to beginn...@perl.org! Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address. To unsubscribe, send a message to: <beginners-unsubscribe-akumar=securities....@perl.org> --- Administrative commands for the beginners list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: For help and a description of available commands, send a message to: <beginners-h...@perl.org> To subscribe to the list, send a message to: <beginners-subscr...@perl.org> To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <beginners-unsubscr...@perl.org> or for the digest to: <beginners-digest-unsubscr...@perl.org> For addition or removal of addresses, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete the transaction. If you need to get in touch with the human owner of this list, please send a message to: <beginners-ow...@perl.org> Please include a FORWARDED list message with ALL HEADERS intact to make it easier to help you. --- Enclosed is a copy of the request I received. Return-Path: <aku...@securities.com> Received: (qmail 32276 invoked from network); 21 Aug 2009 10:12:35 -0000 Received: from x1.develooper.com (207.171.7.70) by x6.develooper.com with SMTP; 21 Aug 2009 10:12:35 -0000 Received: (qmail 7248 invoked by uid 225); 21 Aug 2009 10:12:35 -0000 Delivered-To: beginners-sc.1250849482.ipnnaiiimllkohongcig-akumar=securities....@perl.org Received: (qmail 7242 invoked by alias); 21 Aug 2009 10:12:34 -0000 X-Spam-Status: No, hits=-2.7 required=8.0 tests=RCVD_IN_DNSWL_MED,URI_HEX X-Spam-Check-By: la.mx.develooper.com Received: from mail196.messagelabs.com (HELO mail196.messagelabs.com) (216.82.254.67) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Fri, 21 Aug 2009 03:12:29 -0700 X-VirusChecked: Checked X-Env-Sender: aku...@securities.com X-Msg-Ref: server-7.tower-196.messagelabs.com!1250849485!27709280!5 X-StarScan-Version: 6.1.3; banners=securities.com,-,- X-Originating-IP: [216.255.90.88] Received: (qmail 21246 invoked from network); 21 Aug 2009 10:11:27 -0000 Received: from in005.mci.com (HELO kodg383194.msp.tech.int.digex.com) (216.255.90.88) by server-7.tower-196.messagelabs.com with SMTP; 21 Aug 2009 10:11:27 -0000 Received: from kodg383193.msp.tech.int.digex.com ([10.160.18.74]) by kodg383194.msp.tech.int.digex.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Aug 2009 06:12:24 -0400 Received: from ajay ([124.30.131.134]) by kodg383193.msp.tech.int.digex.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Aug 2009 06:12:23 -0400 Reply-To: <aku...@securities.com> From: "Ajay Kumar" <aku...@securities.com> To: <beginners-sc.1250849482.ipnnaiiimllkohongcig-akumar=securities....@perl.org > Subject: RE: confirm subscribe to beginners@perl.org Date: Fri, 21 Aug 2009 15:42:18 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcoiR8Czu1xfTB06RMyezHdCgWmvywAABtBg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 In-Reply-To: <1250849482.30394.ez...@perl.org> Return-Path: aku...@securities.com Message-ID: <kodg383193bp6elekgv000bd...@kodg383193.msp.tech.int.digex.com> X-OriginalArrivalTime: 21 Aug 2009 10:12:23.0708 (UTC) FILETIME=[E07225C0:01CA2247] X-Virus-Checked: Checked -----Original Message----- From: beginners-h...@perl.org [mailto:beginners-h...@perl.org] Sent: Friday, August 21, 2009 3:41 PM To: Ajay Kumar Subject: confirm subscribe to beginners@perl.org Hi! This is the ezmlm program. I'm managing the beginners@perl.org mailing list. I'm working for my owner, who can be reached at beginners-ow...@perl.org. To confirm that you would like aku...@securities.com added to the beginners mailing list, please send an empty reply to this address: beginners-sc.1250849482.ipnnaiiimllkohongcig-akumar=securities....@perl.org Usually, this happens when you just hit the "reply" button. If this does not work, simply copy the address and paste it into the "To:" field of a new message. or click here: mailto:beginners-sc.1250849482.ipnnaiiimllkohongcig-akumar=securities....@pe rl.org This confirmation serves two purposes. First, it verifies that I am able to get mail through to you. Second, it protects you in case someone forges a subscription request in your name. Some mail programs are broken and cannot handle long addresses. If you cannot reply to this request, instead send a message to <beginners-requ...@perl.org> and put the entire address listed above into the "Subject:" line. --- Administrative commands for the beginners list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: For help and a description of available commands, send a message to: <beginners-h...@perl.org> To subscribe to the list, send a message to: <beginners-subscr...@perl.org> To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <beginners-unsubscr...@perl.org> or for the digest to: <beginners-digest-unsubscr...@perl.org> For addition or removal of addresses, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete the transaction. If you need to get in touch with the human owner of this list, please send a message to: <beginners-ow...@perl.org> Please include a FORWARDED list message with ALL HEADERS intact to make it easier to help you. --- Enclosed is a copy of the request I received. Return-Path: <aku...@securities.com> Received: (qmail 30389 invoked from network); 21 Aug 2009 10:11:22 -0000 Received: from x1.develooper.com (207.171.7.70) by x6.develooper.com with SMTP; 21 Aug 2009 10:11:22 -0000 Received: (qmail 7060 invoked by uid 225); 21 Aug 2009 10:11:22 -0000 Delivered-To: beginners-subscr...@perl.org Received: (qmail 7055 invoked by alias); 21 Aug 2009 10:11:20 -0000 X-Spam-Status: No, hits=-4.0 required=8.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: la.mx.develooper.com Received: from mail44.messagelabs.com (HELO mail44.messagelabs.com) (216.82.249.179) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Fri, 21 Aug 2009 03:11:13 -0700 X-VirusChecked: Checked X-Env-Sender: aku...@securities.com X-Msg-Ref: server-8.tower-44.messagelabs.com!1250849466!14035477!7 X-StarScan-Version: 6.1.3; banners=securities.com,-,- X-Originating-IP: [216.255.90.89] Received: (qmail 21446 invoked from network); 21 Aug 2009 10:11:09 -0000 Received: from in006.mci.com (HELO kodg384239.msp.tech.int.digex.com) (216.255.90.89) by server-8.tower-44.messagelabs.com with SMTP; 21 Aug 2009 10:11:09 -0000 Received: from kodg384238.msp.tech.int.digex.com ([10.160.18.75]) by kodg384239.msp.tech.int.digex.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Aug 2009 06:10:48 -0400 Received: from ajay ([124.30.131.134]) by kodg384238.msp.tech.int.digex.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Aug 2009 06:10:47 -0400 Reply-To: <aku...@securities.com> From: "Ajay Kumar" <aku...@securities.com> To: <beginners-subscr...@perl.org> Subject: Subscribe Date: Fri, 21 Aug 2009 15:40:42 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0054_01CA2275.BF4664A0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcoiR6PcnIdE4ZUCT6elDszbP+Ztww== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Return-Path: aku...@securities.com Message-ID: <kodg384238pwccyxlis00068...@kodg384238.msp.tech.int.digex.com> X-OriginalArrivalTime: 21 Aug 2009 10:10:47.0830 (UTC) FILETIME=[A74C5360:01CA2247] This is a multi-part message in MIME format. ------=_NextPart_000_0054_01CA2275.BF4664A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ______________________________________________________________________ This communication contains information which is confidential. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error please notify us by e-mail or by telephone (as above) and then delete the e-mail and all attachments and any copies thereof. ______________________________________________________________________ ------=_NextPart_000_0054_01CA2275.BF4664A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE=20HTML=20PUBLIC=20"-//W3C//DTD=20HTML=204.0=20Transitional//EN">= <HTML><HEAD> <META=20http-equiv=3DContent-Type=20content=3D"text/html;=20charset=3Dus-a= scii"> <META=20content=3D"MSHTML=206.00.2900.5848"=20name=3DGENERATOR></HEAD> <BODY> <DIV> </DIV> <BR> ______________________________________________________________________<BR>= This=20communication=20contains=20information=20which=20is=20confidential.= =20It=20is=20for=20the<BR> exclusive=20use=20of=20the=20intended=20recipient(s).=20If=20you=20are=20n= ot=20the=20intended<BR> recipient(s)=20please=20note=20any=20distribution,=20copying=20or=20use=20= of=20this<BR> communication=20or=20the=20information=20in=20it=20is=20strictly=20prohibi= ted.=20If=20you=20have<BR> received=20this=20communication=20in=20error=20please=20notify=20us=20by=20= e-mail=20or<BR> by=20telephone=20(as=20above)=20and=20then=20delete=20the=20e-mail=20and=20= all=20attachments=20and<BR> any=20copies=20thereof.<BR> ______________________________________________________________________<BR>= </BODY></HTML> ------=_NextPart_000_0054_01CA2275.BF4664A0-- ______________________________________________________________________ This communication contains information which is confidential. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error please notify us by e-mail or by telephone (as above) and then delete the e-mail and all attachments and any copies thereof. ______________________________________________________________________ ______________________________________________________________________ This communication contains information which is confidential. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error please notify us by e-mail or by telephone (as above) and then delete the e-mail and all attachments and any copies thereof. ______________________________________________________________________ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/