I've been trying to work out the difference between scale and precision in relation to decimal numbers.
Precision is the number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a precision of 5 and a scale of 2.
Most of the articles seem to be related to SQL data types, as per the following image:
Questions
- Does the same hold true in a purely mathematical context?
- If the above question is true, given the value
0.001, is its scale3and precision4?
Edit (for Bounty)
Based on feedback in the comments I've received so far, it seems that "no, scale and precision aren't the terms used to define these numbers", so perhaps a more appropriate question is:
What are the equivalent terms in mathematics?

I've never heard of the word ‘scale’ used in this context. According to the definition in the above image,
0.001and7000have ‘precision’ $1,$0.0100has ‘precision’ $3,$ and700.0400has ‘precision’ $7.$In statistics, business and science, typically, precision = consistency = low variability = closeness of the data points = reproducibility & repeatability.
In this case, precision and accuracy are orthogonal concepts, and imprecision is not thought to lead to inaccuracy.
Here, we are discussing ‘precision’ with reference to a set of repeated measurements.
In physics and numerical analysis, however, I think of precision not as a measure of data dispersion, but as a measure of the resolution of the instrument or the recordings or the calculations.
In this sense, imprecision is about uncertainty more than about inconsistency, and can lead to inaccuracy (loss of correctness), due to the approximation (rounding and truncation) errors being cumulatively propagated by an algorithm, its numerical instability, or a problem's ill condition.
Here, we are discussing ‘precision’ with reference to a single or set of non-repeated measurement(s).
This comment nicely links these two aspects/interpretations of ‘precision’: “The closer the repeated results are to each other, the more confident you can be about expressing the result with a greater number of digits.”