Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit037768c

Browse files
committed
doc: adjust order of NUMERIC arguments to match syntax
Specifically, mention precision before scaleReported-by: claytonjsalem@gmail.comDiscussion:https://postgr.es/m/152967566691.1268.1062965601465200209@wrigleys.postgresql.orgBackpatch-through: 9.3
1 parentae36661 commit037768c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -508,15 +508,14 @@
508508
</para>
509509

510510
<para>
511-
We use the following terms below: The
512-
<firstterm>scale</firstterm> of a <type>numeric</type> is the
513-
count of decimal digits in the fractional part, to the right of
514-
the decimal point. The <firstterm>precision</firstterm> of a
515-
<type>numeric</type> is the total count of significant digits in
516-
the whole number, that is, the number of digits to both sides of
517-
the decimal point. So the number 23.5141 has a precision of 6
518-
and a scale of 4. Integers can be considered to have a scale of
519-
zero.
511+
We use the following terms below: the
512+
<firstterm>precision</firstterm> of a <type>numeric</type>
513+
is the total count of significant digits in the whole number,
514+
that is, the number of digits to both sides of the decimal point.
515+
The <firstterm>scale</firstterm> of a <type>numeric</type> is the
516+
count of decimal digits in the fractional part, to the right of the
517+
decimal point. So the number 23.5141 has a precision of 6 and a
518+
scale of 4. Integers can be considered to have a scale of zero.
520519
</para>
521520

522521
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp