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.
That's not defined in the test.
In PHP you can define if it shall be rounded up or down then but you've to get that detail then to know what to do or to try with both settings and check if the test-cases behave different.
Rounding in PHP
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
That's not defined in the test. In PHP you can define if it shall be rounded up or down then but you've to get that detail then to know what to do or to try with both settings and check if the test-cases behave different. Rounding in PHP