What is the meaning of term "scale" in the description of decimal operators? #1142
Unanswered
LeonidVasilyev
asked this question in
General
Replies: 1 comment
-
This due to the fact that So, when the description of multiplication says that the scales are summed, this means that for example the result of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Relevant excerpt from the description of decimal multiplication:
And division:
Description of other operators makes similar statements. To me it isn't clear whether this statement is about what IEEE-754 calls "width" of operands used for actual calculation or "exponent" of the result. .NET Framework documentation currently uses both "scale" (see Decimal constructor) and "exponent" (see another Decimal constructor) for what IEEE-754 defines as "exponent".
Excerpt from IEEE-754 2.1 Definitions section:
And 10.3 preferredWidth attributes for expression evaluation section:
Beta Was this translation helpful? Give feedback.
All reactions