From: Bruce Momjian Date: Tue, 24 Mar 2015 23:57:52 +0000 (-0400) Subject: doc: update NUMERIC to state that only some ops are exact X-Git-Tag: REL9_5_ALPHA1~565 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=278edd9ed36c7722cbae27e0e96a08964da69eb5;p=postgresql doc: update NUMERIC to state that only some ops are exact Report by Tom Lane --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index edf636b441..da1f25fe28 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -498,11 +498,13 @@ The type numeric can store numbers with a - very large number of digits and perform calculations exactly. It is - especially recommended for storing monetary amounts and other - quantities where exactness is required. However, arithmetic on - numeric values is very slow compared to the integer - types, or to the floating-point types described in the next section. + very large number of digits. It is especially recommended for + storing monetary amounts and other quantities where exactness is + required. Calculations with numeric values yield exact + results where possible, e.g. addition, subtraction, multiplication. + However, calculations on numeric values are very slow + compared to the integer types, or to the floating-point types + described in the next section.