practicalli / practicalli/clojure
Rounding numbers - decimal to integer
Open
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 117
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
what is the idiomatic way of rounding numbers?
(format ".%2f" val) ;; okay for printing / display
(-> val (* 100) Math/round (/ 100)) ;; preferred when using as a value
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reviewing the two examples in the issue and locating the repository's relevant Clojure guidance. Done means the preferred idiom is documented with the distinction between display formatting and value conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100