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

Commit a32624b

Browse files
committed
Actual results are different from examples
1 parent 933fd7e commit a32624b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/func.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.66 2001/08/15 07:10:12 ishii Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.67 2001/08/31 07:30:05 ishii Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -508,7 +508,7 @@
508508
<entry><type>dp</type></entry>
509509
<entry>cube root</entry>
510510
<entry>cbrt(27.0)</entry>
511-
<entry>3.0</entry>
511+
<entry>3</entry>
512512
</row>
513513

514514
<row>
@@ -556,7 +556,7 @@
556556
<entry><type>dp</type></entry>
557557
<entry>base 10 logarithm</entry>
558558
<entry>log(100.0)</entry>
559-
<entry>2.0</entry>
559+
<entry>2</entry>
560560
</row>
561561

562562
<row>
@@ -565,7 +565,7 @@
565565
<entry><type>numeric</type></entry>
566566
<entry>logarithm to base <parameter>b</parameter></entry>
567567
<entry>log(2.0, 64.0)</entry>
568-
<entry>6.0</entry>
568+
<entry>6.0000000000</entry>
569569
</row>
570570

571571
<row>
@@ -590,7 +590,7 @@
590590
<entry><type>dp</type></entry>
591591
<entry>raise a number to exponent <parameter>e</parameter></entry>
592592
<entry>pow(9.0, 3.0)</entry>
593-
<entry>729.0</entry>
593+
<entry>729</entry>
594594
</row>
595595

596596
<row>
@@ -652,7 +652,7 @@
652652
<entry>trunc(<type>numeric</type>, <parameter>s</parameter> <type>integer</type>)</entry>
653653
<entry><type>numeric</type></entry>
654654
<entry>truncate to <parameter>s</parameter> decimal places</entry>
655-
<entry>round(42.4382, 2)</entry>
655+
<entry>trunc(42.4382, 2)</entry>
656656
<entry>42.43</entry>
657657
</row>
658658

0 commit comments

Comments
 (0)