Skip to content

Commit e41c786

Browse files
committed
grammar
1 parent dac39a7 commit e41c786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ This three-class approach would provide explicit separation between:
335335
2. Normalized mathematical values (`Decimal`)
336336
3. Measurements with units (`Measure`)
337337
338-
It is unclear whether `Decimal128` should support arithmetic. We envision it largely as a contain for a number plus a precision. Although IEEE 754 does specify how the quanta of the arguments of mathematical operations determines the quantum of the result, it is difficult to understand these rules. On the one hand, one could provide these operations and simply follow IEEE 754, for the simple reason that IEEE 754 is a well-known standard. On the other hand, we believe that following these rules would be strange to JS programmers.
338+
It is unclear whether `Decimal128` should support arithmetic. We envision it largely as a container for a number-and-unit, plus a precision. Although IEEE 754 does specify how the quanta of the arguments of mathematical operations determines the quantum of the result, it is difficult to understand these rules. On the one hand, one could provide these operations and simply follow IEEE 754, for the simple reason that IEEE 754 is a well-known standard. On the other hand, we believe that following these rules would be strange to JS programmers.
339339
340340
While this design offers more explicit control over precision and normalization, we opted for the two-class design because it has a simpler mental model (fewer types to learn and understand). Also, in the two-class approach, precision handling naturally belongs with measurement. The two-class approach has a reduced API surface area and fewer conversion paths, a clearer separation between mathematical values and measured quantities, and many use cases don't require the distinction between normalized and non-normalized decimal values outside of measurements.
341341

0 commit comments

Comments
 (0)