pingcap / pingcap/docs-cn

定点类型描述错误

Open
#13,516 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
1.2k
Avg merge
1d 16h
Merged PRs (30d)
31

Description

https://github.com/pingcap/docs-cn/blob/4c2f43fdca4cab19df60c27ae61fb0d613ea21f3/data-type-numeric.md?plain=1#L175-L199

小数位数是精度?

M 是小数位数(精度)的总数

from MySQL document

In a DECIMAL column declaration , the precision and scale can be (and usually is) specified. For example:

salary DECIMAL(5,2)

In this example, 5 is the precision and 2 is the scale . The precision represents the number of significant digits that are stored for values, and the scale represents the number of digits that can be stored following the decimal point.

Standard SQL requires that DECIMAL(5,2) be able to store any value with five digits and two decimals, so values that can be stored in the salary column range from -999.99 to 999.99.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open data-type-numeric.md and review the linked lines describing DECIMAL precision and scale. Compare the wording with the cited MySQL documentation, then correct the Chinese description so M, precision, and scale are accurately defined; verify the rendered section when done.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.