From 960728aad2d745c3daaafb1bdce6bcababbc605f Mon Sep 17 00:00:00 2001 From: Andrew Main Date: Sat, 2 Sep 2000 17:09:28 +0000 Subject: 12722: [##base] for output base selection without a base prefix --- Doc/Zsh/arith.yo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doc/Zsh/arith.yo') 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 -- cgit 1.4.1