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

Dealing with floats. #51

Open
luenib opened this issue Sep 5, 2023 · 0 comments
Open

Dealing with floats. #51

luenib opened this issue Sep 5, 2023 · 0 comments

Comments

@luenib
Copy link

luenib commented Sep 5, 2023

Sometimes one of the dimension of a box could be, say, 2 1/4", which translates into 2.25" In order to avoid dealing with floats, I move the decimal point two places to the right. When that happens the algorithm returns very weird results. It's like the algorithm was not designed to deal with numbers like 375 (3 3/4"), 713 (7 1/8").

If I change the dimensions to 4" and 7" the packing is smoother. Has anyone here dealt with this issue?

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

No branches or pull requests

1 participant