Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: printf
- X-seq: zsh-workers 16204
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: printf
- Date: Thu, 01 Nov 2001 18:32:55 +0000
- In-reply-to: "Oliver Kiddle"'s message of "Thu, 01 Nov 2001 18:17:25 GMT." <3BE191B5.B4FDC8E8@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Oliver Kiddle wrote:
> Is this `_' a new perl feature:
> perl -e 'printf "%_g\n",132643.45'
> does not work with 5.0005_03 or am I putting the underscore in the
> wrong place. We can always offer a choice of flag character here.
Ah, I misinterpreted. I meant on input:
perl -e 'print 3_000 + 2_000, "\n"'
But that's up to the math code, probably an easy addition.
> This returns me to using sprintf which should be okay.
That sounds like the best bet.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author