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'm not going to give too much away, but i'll say that the tutorial ironically invokes an error of precision (semantic precision at least) by saying that the scale variable in bc rounds. it just truncates the digits. there's a big difference for the sake of getting the first test case correct.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arithmetic Operations
You are viewing a single comment's thread. Return to all comments →
i'm not going to give too much away, but i'll say that the tutorial ironically invokes an error of precision (semantic precision at least) by saying that the
scale
variable in bc rounds. it just truncates the digits. there's a big difference for the sake of getting the first test case correct.