ruby / ruby/bigdecimal

Method BigDecimal: 0 digits algorithm

Open
#208 2 comments 0 reactions 1 assignee View on GitHub

@mrkn is already working on this.

Since Nov 27, 2021.

question
Dominant language
C
Stars
152
Forks
95
Avg merge
4d 1h
Merged PRs (30d)
10

Description

Doc for method BigDecimal says:

  • When arg is a Float and digits is 0, the number
  • of digits is determined by the algorithm of dtoa function
  • written by David M. Gay. That algorithm is based on "How to Print Floating-
  • Point Numbers Accurately" by Guy L. Steele, Jr. and Jon L. White [Proc. ACM
  • SIGPLAN '90, pp. 112-126].

Is this also true for other methods that have digits/ndigits?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.