Skip to content

Add comprehensive Decimal documentation and cookbook#198

Closed
jessealama wants to merge 9 commits intomainfrom
add-cookbook
Closed

Add comprehensive Decimal documentation and cookbook#198
jessealama wants to merge 9 commits intomainfrom
add-cookbook

Conversation

@jessealama
Copy link
Copy Markdown
Collaborator

  • Add documentation build system with Markdown support
  • Create cookbook with practical Decimal usage examples
  • Add why-decimal.md explaining the motivation for Decimal
  • Add data-model.md explaining the technical design
  • Add decimal.md with API reference
  • Update package.json with documentation scripts
  • Add .gitignore entries for generated docs

jessealama and others added 9 commits July 3, 2025 16:31
- Add documentation build system with Markdown support
- Create cookbook with practical Decimal usage examples
- Add why-decimal.md explaining the motivation for Decimal
- Add data-model.md explaining the technical design
- Add decimal.md with API reference
- Update package.json with documentation scripts
- Add .gitignore entries for generated docs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Fix invalid toPrecision(20) chaining syntax in why-decimal.md
- Add missing parentheses to isNaN() and isFinite() method calls in cookbook.md
- Fix grammar: "the number" → "the numbers" in why-decimal.md
- Update exchange rate examples to use realistic rates (0.85 → 0.92545)
- Add proposal-decimal to devDependencies
- Fix isNaN and isFinite method calls
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.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jessealama jessealama closed this Oct 23, 2025
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