Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8344979

Browse files
committed
Doc: improve documentation about exponentiation operator.
Now that we're not having to wedge this into the straitjacket ofthe old operator table format, we can add another example toclarify the point about left-to-right associativity.Per suggestion from mdione at grulic.org.ar.https://postgr.es/m/162661954599.693.13700316547731859171@wrigleys.postgresql.org
1 parent0b5dc1f commit8344979

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,16 +1007,23 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
10071007
<returnvalue>double precision</returnvalue>
10081008
</para>
10091009
<para>
1010-
Exponentiation (unlike typical mathematical practice, multiple uses of
1011-
<literal>^</literal> will associate left to right)
1010+
Exponentiation
10121011
</para>
10131012
<para>
10141013
<literal>2 ^ 3</literal>
10151014
<returnvalue>8</returnvalue>
10161015
</para>
1016+
<para>
1017+
Unlike typical mathematical practice, multiple uses of
1018+
<literal>^</literal> will associate left to right by default:
1019+
</para>
10171020
<para>
10181021
<literal>2 ^ 3 ^ 3</literal>
10191022
<returnvalue>512</returnvalue>
1023+
</para>
1024+
<para>
1025+
<literal>2 ^ (3 ^ 3)</literal>
1026+
<returnvalue>134217728</returnvalue>
10201027
</para></entry>
10211028
</row>
10221029

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp