Skip to content

Commit 278edd9

Browse files
committed
doc: update NUMERIC to state that only some ops are exact
Report by Tom Lane
1 parent 1d8198b commit 278edd9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,13 @@
498498

499499
<para>
500500
The type <type>numeric</type> can store numbers with a
501-
very large number of digits and perform calculations exactly. It is
502-
especially recommended for storing monetary amounts and other
503-
quantities where exactness is required. However, arithmetic on
504-
<type>numeric</type> values is very slow compared to the integer
505-
types, or to the floating-point types described in the next section.
501+
very large number of digits. It is especially recommended for
502+
storing monetary amounts and other quantities where exactness is
503+
required. Calculations with <type>numeric</type> values yield exact
504+
results where possible, e.g. addition, subtraction, multiplication.
505+
However, calculations on <type>numeric</type> values are very slow
506+
compared to the integer types, or to the floating-point types
507+
described in the next section.
506508
</para>
507509

508510
<para>

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