mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
doc: update NUMERIC to state that only some ops are exact
Report by Tom Lane
This commit is contained in:
@@ -498,11 +498,13 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
The type <type>numeric</type> can store numbers with a
|
The type <type>numeric</type> can store numbers with a
|
||||||
very large number of digits and perform calculations exactly. It is
|
very large number of digits. It is especially recommended for
|
||||||
especially recommended for storing monetary amounts and other
|
storing monetary amounts and other quantities where exactness is
|
||||||
quantities where exactness is required. However, arithmetic on
|
required. Calculations with <type>numeric</type> values yield exact
|
||||||
<type>numeric</type> values is very slow compared to the integer
|
results where possible, e.g. addition, subtraction, multiplication.
|
||||||
types, or to the floating-point types described in the next section.
|
However, calculations on <type>numeric</type> values are very slow
|
||||||
|
compared to the integer types, or to the floating-point types
|
||||||
|
described in the next section.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
Reference in New Issue
Block a user