From: Bruno Bonfils <asyd@debian-fr.org>
To: "'ZSH Users'" <zsh-users@sunsite.dk>
Subject: Re: question about float variables
Date: Wed, 10 Oct 2001 14:47:05 +0200 [thread overview]
Message-ID: <20011010144705.A6758@debian-fr.org> (raw)
In-Reply-To: <001401c15169$c095c020$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Wed, Oct 10, 2001 at 12:58:38PM +0400
[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]
> 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
Admin Sys Linux
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 #2: Type: application/pgp-signature, Size: 249 bytes --]
prev parent reply other threads:[~2001-10-10 12:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-09 23:33 Bruno Bonfils
2001-10-10 8:58 ` Borsenkow Andrej
2001-10-10 9:42 ` Phil Pennock
2001-10-10 10:10 ` Borsenkow Andrej
2001-10-10 10:28 ` Phil Pennock
2001-10-10 12:47 ` Bruno Bonfils [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011010144705.A6758@debian-fr.org \
--to=asyd@debian-fr.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).