summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-03-05 20:06:59 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-03-05 20:06:59 +0000
commit26694406f22f0fe37d0b751066200bf0cfdec165 (patch)
treed7dc12babd4c9f28cd1588a3f94f8cedc76f594b /Doc
parent3def943d046ad03540dd188ab52c0eacaa021149 (diff)
downloadzsh-26694406f22f0fe37d0b751066200bf0cfdec165.tar.gz
zsh-26694406f22f0fe37d0b751066200bf0cfdec165.tar.xz
zsh-26694406f22f0fe37d0b751066200bf0cfdec165.zip
users/17666: zcalc -f sets FORCE_FLOAT
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 41a9d8158..14886d676 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -3158,6 +3158,10 @@ The output base can be initialised by passing the option `tt(-#)var(base)',
 for example `tt(zcalc -#16)' (the `tt(#)' may have to be quoted, depending
 on the globbing options set).
 
+If the option `tt(-f)' is set, all numbers are treated as floating
+point, hence for example the expression `tt(3/4)' evaluates to 0.75
+rather than 0.  Options must appear in separate words.
+
 The prompt is configurable via the parameter tt(ZCALCPROMPT), which
 undergoes standard prompt expansion.  The index of the current entry is
 stored locally in the first element of the array tt(psvar), which can be