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.
I found it quite devious that test 0 only tests for truncation, not for rounding, which i suspect is why we see a lot of confused people in the comments. Adding even one example would so many people figure it out on their own.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Closest Number
You are viewing a single comment's thread. Return to all comments →
I found it quite devious that test 0 only tests for truncation, not for rounding, which i suspect is why we see a lot of confused people in the comments. Adding even one example would so many people figure it out on their own.