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

# Re: question about float variables

• X-seq: zsh-users 4364
• From: Bruno Bonfils <asyd@xxxxxxxxxxxxx>
• To: "'ZSH Users'" <zsh-users@xxxxxxxxxx>
• Subject: Re: question about float variables
• Date: Wed, 10 Oct 2001 14:47:05 +0200
• In-reply-to: <001401c15169\$c095c020\$21c9ca95@xxxxxxxxxxxxxx>; from Andrej.Borsenkow@xxxxxxxxxxxxxx on Wed, Oct 10, 2001 at 12:58:38PM +0400
• Mail-followup-to: Bruno Bonfils <asyd@xxxxxxxxxxxxx>, 'ZSH Users' <zsh-users@xxxxxxxxxx>
• Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
• References: <20011010013324.A9741@xxxxxxxxxxxxx> <001401c15169\$c095c020\$21c9ca95@xxxxxxxxxxxxxx>

```> bor@itsrm2% float var1
> bor@itsrm2% var1=\$((3.0/2))
> bor@itsrm2% print \$var1
> 1.500000000e+00

> Should I just say RTFM?
(sorry, i was tired)
>
> typeset description:
>
>     -E
>           Use an internal double-precision floating point
>           representation.  On output the variable will be converted to
>           scientific notation.  If N is nonzero it defines the number
>           of significant figures to display; the default is ten.
>
>     -F
>           Use an internal double-precision floating point
>           representation.  On output the variable will be converted to
>           fixed-point decimal notation.  If N is nonzero it defines the
>           number of digits to display after the decimal point; the
>           default is ten.
>
>
> -andrej

Thank you very much

--
Bruno Bonfils

http://www.darksnow.org  http://www.debian-fr.org

Il faut s'entr'aider, c'est la loi de nature.

-- Jean de La Fontaine, L'Ane et le Chien
```

Attachment: pgpUz945HYu15.pgp
Description: PGP signature

Messages sorted by: Reverse Date, Date, Thread, Author