Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: floating point output
- X-seq: zsh-workers 16429
- From: Geoff Wing <mason@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: floating point output
- Date: Fri, 11 Jan 2002 00:36:39 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- References: <27391.1010584552@xxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Peter Stephenson <pws@xxxxxxx> typed:
: I just noticed:
: (( A = 1.2e12 ))
: print $A
: prints `1200000000000', with no decimal point.
...
: This might
: simply be an effect of the Solaris sprintf() implementation.
...
Presumably. Just for general interest sake, from my Zsh built the
day before this patch (on non-Solaris):
% (( A = 1.2e12 ))
% print $A
1200000000000.0000000000
% (( A = 1.0000 ))
% print $A
1.0000000000
Regards,
--
Geoff Wing : <gcw@xxxxxxxxx>
Rxvt Stuff : <gcw@xxxxxxxx>
Zsh Stuff : <gcw@xxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author