Skip to content

Commit 4c5cf54

Browse files
committed
doc: Document factorial function
This has existed for a very long time, equivalent to the ! and !! operators, but it was never documented. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/6ce1df0e-86a3-e544-743a-f357ff663f68%402ndquadrant.com
1 parent 3f5863e commit 4c5cf54

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/src/sgml/func.sgml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,23 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
13471347
</para></entry>
13481348
</row>
13491349

1350+
<row>
1351+
<entry role="func_table_entry"><para role="func_signature">
1352+
<indexterm>
1353+
<primary>factorial</primary>
1354+
</indexterm>
1355+
<function>factorial</function> ( <type>bigint</type> )
1356+
<returnvalue>numeric</returnvalue>
1357+
</para>
1358+
<para>
1359+
Factorial
1360+
</para>
1361+
<para>
1362+
<literal>factorial(5)</literal>
1363+
<returnvalue>120</returnvalue>
1364+
</para></entry>
1365+
</row>
1366+
13501367
<row>
13511368
<entry role="func_table_entry"><para role="func_signature">
13521369
<indexterm>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy