tc39 / proposal-decimal

Built-in exact decimal numbers for JavaScript
http://tc39.es/proposal-decimal/
497 stars 18 forks source link

Conversions not specified #111

Closed waldemarhorwat closed 4 months ago

waldemarhorwat commented 7 months ago

The current proposal lacks specification of conversions between Decimals and strings. It has callouts to things such as "IEEE 754's convertToDecimalCharacter", which is not a specification. IEEE 754's convertToDecimalCharacter simply states that an implementation shall have some conversion to a string without saying what it is.

jessealama commented 7 months ago

Good point. The reference to IEEE 754's convertToDecimalCharacter is essentially a placeholder/todo for further specification on our part.

As we approach plenary I'd like to not modify the spec text. I'll work on this after plenary.

jessealama commented 7 months ago

Addressed in #112 .

waldemarhorwat commented 7 months ago

The string-to-Decimal conversion is not specified either.

waldemarhorwat commented 7 months ago

Explicit conversions to and from Numbers are also entirely missing.

jessealama commented 4 months ago

We've taken care of that now, mainly in #158.