mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +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
|
@ -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…
Add table
Add a link
Reference in a new issue