Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid decimal point and trailing zero for integer BOM quantities #374

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

kvid
Copy link
Collaborator

@kvid kvid commented Jun 4, 2024

Sometimes the total length of certain items in the BOM will be shown with a decimal point and a trailing zero even if all values are input as integers. One source of this is https://github.com/wireviz/WireViz/blob/v0.4/src/wireviz/DataClasses.py#L310 where an integer value will be converted to a float value, but there might be other places in the code that could cause the same issue.

This change will resolve the issue at the other end (while processing the BOM) - independently of what might be the source of the issue. This should fix #340.

This was referenced Jun 4, 2024
@kvid kvid merged commit db1e77f into release/v0.4.1-rc Jun 7, 2024
4 checks passed
@kvid kvid deleted the fix340 branch June 7, 2024 23:40
@kvid kvid linked an issue Jun 22, 2024 that may be closed by this pull request
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.

length precision
2 participants