Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: floating point output



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