Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 54aaafe

Browse files
committed
Document the exponentiation operator as associating left to right.
Common mathematical convention is that exponentiation associates right to left. We aren't going to change the parser for this, but we could note it in the operator's description. (It's already noted in the operator precedence/associativity table, but users might not look there.) Per bug #13829 from Henrik Pauli.
1 parent 870df2b commit 54aaafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/func.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505

506506
<row>
507507
<entry> <literal>^</literal> </entry>
508-
<entry>exponentiation</entry>
508+
<entry>exponentiation (associates left to right)</entry>
509509
<entry><literal>2.0 ^ 3.0</literal></entry>
510510
<entry><literal>8</literal></entry>
511511
</row>

0 commit comments

Comments
 (0)