Skip to content

Remove error handling section#199

Merged
jessealama merged 2 commits intomainfrom
cookbook-fixes
Oct 22, 2025
Merged

Remove error handling section#199
jessealama merged 2 commits intomainfrom
cookbook-fixes

Conversation

@jessealama
Copy link
Copy Markdown
Collaborator

This work was supposed to be included in #196 but were unintentionally dropped.

The spec defines round() as:
  round(numFractionalDigits, roundingMode)

where roundingMode is a string, not an options object.

Changed all examples from:
  value.round(2, { roundingMode: "floor" })
to:
  value.round(2, "floor")

This matches both the spec and the polyfill implementation.
@jessealama jessealama merged commit 1559d4e into main Oct 22, 2025
1 check passed
@jessealama jessealama deleted the cookbook-fixes branch October 22, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant