Shane F. Carr
Shane F. Carr
> If there is a decimalAdd(x, y) operation for Numbers, I suppose that it will return 𝔽(ToDecimal(x) + ToDecimal(y)), where ToDecimal(x) returns the mathematical value represented by ToString(x). Yes, that's...
Yes, we are "simulating" the calculation. The _definition_ of `Math.decimalAdd` in the spec would be the one @Qyinwtocs posted earlier, and it's what I should have included in my OP...
In the context of tc39/proposal-measure#26, I thought it might be useful to add another definition: Every Number has two reckonings: a `toString` reckoning and a `toPrecision` reckoning. I'll alternatively call...
Here's an implementation of `Math.decimalAdd` that behaves how I had been thinking (not 100% tested): https://developer.mozilla.org/en-US/play?id=vek0wYSHAUnyHe8nHoV1zLHZgmVluKk6XRjBkEG7Sj44JoN3yW03iumZ138KzrWN%2Baf0rWVYx4Af8B1j /// Internal class for implementing Math.decimalAdd class NumericString { #str; /// Create a NumbericString...
2024-03-28 TG2 notes: https://github.com/tc39/ecma402/blob/main/meetings/notes-2024-03-28.md#numeric-range-validation-is-inconsistent-691
Third try?
Actually wait this should have TC approval. @zbraniecki?
The argument in favor of treating `h24` as an alias of `h23` is that when developers wrote `h24`, they probably\* intended it to have the behavior of `h23`, so we...
TG2 discussion: https://github.com/tc39/ecma402/blob/main/meetings/notes-2025-08-14.md#unicode-is-planning-to-deprecate-h24-what-should-browsers-do-1002 The sentiment of the room was that in the web platform we should make -u-hc-h24 fall back to -u-hc-h23, regardless of what CLDR decides to do. @hsivonen...
In #6667 I switched it to use my fork. We should switch it back to using upstream once the PR is landed and released.