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

Re: question about float variables



> 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: pgpUz945HYu15.pgp
Description: PGP signature



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