Skip to content

Commit 87d34e8

Browse files
Update README.md
Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>
1 parent 6c25f9f commit 87d34e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Decimal is based on IEEE 754 Decimal128, which is a standard for base-10 decimal
241241
+ a single NaN value--distinct from the built-in `NaN` of JS. The difference between quiet and singaling NaNs will be collapsed into a single Decimal NaN.
242242
+ positive and negative infinity will be available, though, as with `NaN`, they are distinct from JS's built-in `Infinity` and `-Infinity`.
243243

244-
Decimal canonicalizes when converting to strings and after performing arithmetic operations. This means that Decimals do not support trailing zeroes. Thus, "1.20" is valid syntax, but under the hood the number is just `1.2`, not `1.20`. This is an important difference from official IEEE 754 Decimal128.
244+
Decimal canonicalizes when converting to strings and after performing arithmetic operations. This means that Decimals do not expose information about trailing zeroes. Thus, "1.20" is valid syntax, but there is no way to distinguish 1.20 from 1.2. This is an important omission from the capabilities defined by IEEE 754 Decimal128.
245245

246246
### Operator semantics
247247

0 commit comments

Comments
 (0)