Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello again,

So far I can understand that we pass mm(millimeters) and g(grams) as parameters and all these values must be INTEGER

What about if I want to use the American measurements system? Results will be the same right?

You must be logged in to vote

Replies: 3 comments · 1 reply

Comment options

The algorithms don't use units, just integers, so if you supply ozs for weight, then you will see ozs in the packed object too. Same for inches, feet, yards, ,miles or any other unit you want to use. This does mean you could see a total packed weight of 1000 oz , it's not going to convert it into lbs and ozs for you.

You must be logged in to vote
0 replies
Comment options

Thank you for making it clear ;)

You must be logged in to vote
0 replies
Comment options

Ok, I have to use the pounds system.

I want to set that the empty package weight is 1.2 pounds.

Is the algorithm will get as 1 right?

What is the proper way to handle decimals? multiple * 100 when i pass and then divide / 100 on results ?

Thank you

You must be logged in to vote
1 reply
@dvdoug
Comment options

Depends on how many decimal places you have, but yes multiplying by 10 or 100 is the way to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.