We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
"Most important thing to remeber for a begginer is that you should never try to evaluate if two floats are equal, you can do it only if you consider by how much they can differ (epsilon)"
Can you clarify what you mean by "if two floats are equal"? Even so, why would it be necessary that they aren't equal? I'm not really understanding what you're trying to say with epsilon.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Python: Division
You are viewing a single comment's thread. Return to all comments →
Hey! Thanks for answering. For this part:
"Most important thing to remeber for a begginer is that you should never try to evaluate if two floats are equal, you can do it only if you consider by how much they can differ (epsilon)"
Can you clarify what you mean by "if two floats are equal"? Even so, why would it be necessary that they aren't equal? I'm not really understanding what you're trying to say with epsilon.