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

Commit370e68a

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 parentb6e94b8 commit370e68a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,13 @@
515515

516516
<para>
517517
We use the following terms below: The
518-
<firstterm>scale</firstterm> of a <type>numeric</type> is the
519-
count of decimal digits in the fractional part, to the right of
520-
the decimal point. The <firstterm>precision</firstterm> of a
521-
<type>numeric</type> is the total count of significant digits in
522-
the whole number, that is, the number of digits to both sides of
523-
the decimal point. So the number 23.5141 has a precision of 6
524-
and a scale of 4. Integers can be considered to have a scale of
525-
zero.
518+
<firstterm>precision</firstterm> of a <type>numeric</type>
519+
is the total count of significant digits in the whole number,
520+
that is, the number of digits to both sides of the decimal point.
521+
The <firstterm>scale</firstterm> of a <type>numeric</type> is the
522+
count of decimal digits in the fractional part, to the right of the
523+
decimal point. So the number 23.5141 has a precision of 6 and a
524+
scale of 4. Integers can be considered to have a scale of zero.
526525
</para>
527526

528527
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp