Skip to content

Conversation

@md-coops
Copy link

After completing https://www.codecademy.com/courses/learn-python-3/projects/python-sals-shipping. I noticed how my version is different to the accepted answer. coming from a browser orientated javascript background I never really have had to worry about numerical calculations and number types. However coming into python, I am starting to consider the correct use of different numbering systems in programming.

Arguably price should be an integer as it is discrete data. Even in our simple calculations, using a float for currency starts to deviate our results slightly rather than using an integer.

Arguably price should be an integer as it is discrete data. Even in our simple calculations, using a float for currency starts to deviate our results slightly rather than using an integer.
@CLAassistant
Copy link

CLAassistant commented Jul 30, 2024

CLA assistant check
All committers have signed the CLA.

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.

2 participants