diff options
author | Andrew Main <zefram@users.sourceforge.net> | 2000-09-02 17:09:28 +0000 |
---|---|---|
committer | Andrew Main <zefram@users.sourceforge.net> | 2000-09-02 17:09:28 +0000 |
commit | 960728aad2d745c3daaafb1bdce6bcababbc605f (patch) | |
tree | 5171efec0e590bc347d7af5d5ca23db3cd44922b /Doc/Zsh | |
parent | 0cea5554a84ac344a8efb1d091440c472e9f21be (diff) | |
download | zsh-960728aad2d745c3daaafb1bdce6bcababbc605f.tar.gz zsh-960728aad2d745c3daaafb1bdce6bcababbc605f.tar.xz zsh-960728aad2d745c3daaafb1bdce6bcababbc605f.zip |
12722: [##base] for output base selection without a base prefix
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/arith.yo | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo index 095756667..fcd45a1f5 100644 --- a/Doc/Zsh/arith.yo +++ b/Doc/Zsh/arith.yo @@ -65,6 +65,11 @@ have output base 16, while tt(x) (assuming it does not already exist) is implicitly typed by the arithmetic evaluation, where it acquires the output base 8. +When an output base is specified using the `tt([#)var(base)tt(])' syntax, +an appropriate base prefix will be output if necessary, so that the value +output is valid syntax for input. If the tt(#) is doubled, for example +`tt([##16])', then no base prefix is output. + Floating point constants are recognized by the presence of a decimal point or an exponent. The decimal point may be the first character of the constant, but the exponent character tt(e) or tt(E) may not, as it will be |