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

Commit 14ac047

Browse files
committed
Document the sign() function.
1 parent a1ee066 commit 14ac047

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/src/sgml/func.sgml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.72 2001/09/20 14:20:26 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.73 2001/09/20 16:41:26 petere Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -640,6 +640,14 @@
640640
<entry></entry>
641641
</row>
642642
-->
643+
<row>
644+
<entry><function>sign</function>(<type>numeric</type>)</entry>
645+
<entry><type>numeric</type></entry>
646+
<entry>sign of the argument (-1, 0, +1)</entry>
647+
<entry><literal>sign(-8.4)</literal></entry>
648+
<entry>-1</entry>
649+
</row>
650+
643651
<row>
644652
<entry><function>sqrt</function>(<type>dp</type>)</entry>
645653
<entry><type>dp</type></entry>

0 commit comments

Comments
 (0)