ES Decimal Updates
A summary of changes to ECMAScript decimal support, based on input from the committee in the last week or so:
- Operations (e.g., addition, subtraction, multiplication, ...) between 64-bit binary floating point and 128-bit decimal floating point quantities will proceed by first converting the 64-bit binary floating point number to 128-bit decimal floating point to the maximum required precision and then proceeding with the operation. Previously the proposal was to convert the other way, resulting in a 64-bit binary result.
- “strict” equality operations (
===
,!==
) will no longer return false when comparing two decimal values with different precisions (e.g.,1.10m
and1.1m
) typeof(1.1m)
is now"object"
(was"decimal"
)
Output and a summary of the run of the small but growing unit test suite.