]> granicus.if.org Git - postgresql/commitdiff
Actual results are different from examples
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 31 Aug 2001 07:30:05 +0000 (07:30 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 31 Aug 2001 07:30:05 +0000 (07:30 +0000)
doc/src/sgml/func.sgml

index 9423e524fe9f46aca12502ebb7eb7913d2ec70f2..4b318597952a1452ab85089a0779e506dbc06b2d 100644 (file)
@@ -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>
       <entry><type>dp</type></entry>
       <entry>cube root</entry>
       <entry>cbrt(27.0)</entry>
-      <entry>3.0</entry>
+      <entry>3</entry>
      </row>
 
      <row>
       <entry><type>dp</type></entry>
       <entry>base 10 logarithm</entry>
       <entry>log(100.0)</entry>
-      <entry>2.0</entry>
+      <entry>2</entry>
      </row>
 
      <row>
       <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>
       <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>
       <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>