Skip to content

Conversation

@jeremystretch
Copy link
Member

Fixes: #18869

  • Ensure to_meters() always returns a decimal value rounded to four decimal places
  • Add tests for to_meters() & to_grams()

@jeremystretch jeremystretch requested review from a team and jnovinger and removed request for a team March 12, 2025 17:00
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if "length won't always be an int" is a bad assumption. This looks good otherwise.

@jeremystretch jeremystretch requested a review from jnovinger March 12, 2025 18:28
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 Just waiting on CI to finish

@jnovinger jnovinger merged commit 092f754 into main Mar 12, 2025
6 checks passed
@jnovinger jnovinger deleted the 18869-conversion-utilities branch March 17, 2025 22:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Numeric conversion utility functions do not account for floating point errors

3 participants