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.
Rounding up the second input of each entry of three doubles is not occuring consistently. In test case two, the twelfth entry of three doubles, the second entry, 963.015, the expected output is __+963.01 which is not rounded up. However, then, in the 29th entry of three doubles, the second double entry is 218.895 with the expected output of __+218.90 which is rounded up. This shoudl be corrected or clarified.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Print Pretty
You are viewing a single comment's thread. Return to all comments →
Rounding up the second input of each entry of three doubles is not occuring consistently. In test case two, the twelfth entry of three doubles, the second entry, 963.015, the expected output is __+963.01 which is not rounded up. However, then, in the 29th entry of three doubles, the second double entry is 218.895 with the expected output of __+218.90 which is rounded up. This shoudl be corrected or clarified.