aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-08-31 07:30:05 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-08-31 07:30:05 +0000
commita32624b45c68db3d5f942f1004c19b90b077ec2b (patch)
tree5f9936acebe5a27e0151e9c98da334324bf00118
parent933fd7e2de56a572960c5fd4268174c4b2299a07 (diff)
downloadpostgresql-a32624b45c68db3d5f942f1004c19b90b077ec2b.tar.gz
postgresql-a32624b45c68db3d5f942f1004c19b90b077ec2b.zip
Actual results are different from examples
-rw-r--r--doc/src/sgml/func.sgml12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 9423e524fe9..4b318597952 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,4 +1,4 @@
-<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.66 2001/08/15 07:10:12 ishii Exp $ -->
+<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.67 2001/08/31 07:30:05 ishii Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
@@ -508,7 +508,7 @@
<entry><type>dp</type></entry>
<entry>cube root</entry>
<entry>cbrt(27.0)</entry>
- <entry>3.0</entry>
+ <entry>3</entry>
</row>
<row>
@@ -556,7 +556,7 @@
<entry><type>dp</type></entry>
<entry>base 10 logarithm</entry>
<entry>log(100.0)</entry>
- <entry>2.0</entry>
+ <entry>2</entry>
</row>
<row>
@@ -565,7 +565,7 @@
<entry><type>numeric</type></entry>
<entry>logarithm to base <parameter>b</parameter></entry>
<entry>log(2.0, 64.0)</entry>
- <entry>6.0</entry>
+ <entry>6.0000000000</entry>
</row>
<row>
@@ -590,7 +590,7 @@
<entry><type>dp</type></entry>
<entry>raise a number to exponent <parameter>e</parameter></entry>
<entry>pow(9.0, 3.0)</entry>
- <entry>729.0</entry>
+ <entry>729</entry>
</row>
<row>
@@ -652,7 +652,7 @@
<entry>trunc(<type>numeric</type>, <parameter>s</parameter> <type>integer</type>)</entry>
<entry><type>numeric</type></entry>
<entry>truncate to <parameter>s</parameter> decimal places</entry>
- <entry>round(42.4382, 2)</entry>
+ <entry>trunc(42.4382, 2)</entry>
<entry>42.43</entry>
</row>