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.
Oh, thank you. I am ashamed by forgetting this theorem. So, am I supposed to convert division to multiplication when evaluating expressions? Currently my code evaluates (-2)/10 to be equal to 0 by rounding integers.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Expressions V2
You are viewing a single comment's thread. Return to all comments →
Oh, thank you. I am ashamed by forgetting this theorem. So, am I supposed to convert division to multiplication when evaluating expressions? Currently my code evaluates
(-2)/10
to be equal to0
by rounding integers.