Closed cannawen closed 6 years ago
Marking as blocked on #61 because of potential merge conflicts
https://www.reddit.com/r/metric_units/comments/73edn2/constructive_feedback_thread/do5x8cg
Looks like we should just rethink this whole rounding thing entirely. Closing issue, to be reopened with new requirements
metric_units is a sassy reddit bot that finds imperial units, and replies with a metric conversion.
Current behaviour:
Problem: While this works the majority of the time, for some values this may lead to too much rounding.
Enhancement request: Find an algorithm that can handle these cases to round "appropriately."
Possible solution: In step 1 of the current algorithm, perhaps we can always round to 1% error, instead of matching the number of decimals? Open to any other ideas you can come up with.
See conversion_helper.roundConversions to get started!
Recommended reading: CONTRIBUTING.md (sections "Etiquette", "Work on an issue" and "Make a PR" are most important)
Recommended skills: Basic javascript & basic regular expressions
Estimated effort: 30-60 minutes
Comment below if you would like to take on this task!