mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-26 18:01:03 +02:00
use LPAR() instead of parens in sqrt example
This commit is contained in:
parent
22b8fd6da9
commit
1fc259363f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-01-23 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Doc/Zsh/arith.yo: use LPAR() instead of parens
|
||||
in sqrt example
|
||||
|
||||
2014-01-23 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 32299: Doc/Zsh/arith.yo, Functions/Misc/zcalc, Src/math.c,
|
||||
|
|
|
@ -92,7 +92,7 @@ point numbers, in which case the base must be omitted; grouping
|
|||
is away from the decimal point. For example,
|
||||
|
||||
example(zmodload zsh/mathfunc
|
||||
print $(( [#_] sqrt(1e7) )))
|
||||
print $(( [#_] sqrt+LPAR()1e7+RPAR() )))
|
||||
|
||||
outputs `tt(3_162.277_660_168_379_5)' (the number of decimal places
|
||||
shown may vary).
|
||||
|
|
Loading…
Reference in a new issue