Skip to content

November review #74

@waldemarhorwat

Description

@waldemarhorwat

Here's my review of the current version of the proposal:

  • Is there a reason to collect the total number of digits in StringIntlMV? It's not used anywhere and not actually useful due to leading zeros.
  • ApplyRoundingModeToPositive: Extra * on line 6
  • RoundAmountValueToFractionDigits: Use the ReverseRoundingMode helper function above?
  • RenderAmountValueWithFractionDigits:
    • numDigits should be fractionDigits
    • Line 8: remove the rounding code here. This function must never round. If it ever does, it's a spec bug and can generate incorrect results such as turning -0 into 0.
    • Line 9 is incorrect. As written, e will always be zero. I assume e should appear in the exponent, but then it will still always be zero because rounded is an integer. Picking the largest value here doesn't work either if, for example, v is 0.
    • Line 11 is incorrect. I can't tell what it's trying to do.
    • Line 13 is incorrect in a variety of ways. For example, n can never be positive on line e, but it can be negative.
  • get Decimal.prototype.significantDigits: No one sets [[SignificantDigits]]. This should call FractionToSignificantDigits instead.
  • ToIntlMathematicalValue: Spec type error on intlMV: it's a list but used as a scalar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions