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.
Hi David could you give me a hand tryinf to solve this in PHP. I keep failing the thrid test case (Testcase 2). I think its the round function as it keeps round up but it should round down. The amount when calculated is £22.31. When its out put it rounding to £23. Do you know how to fix this.
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 →
Hi David could you give me a hand tryinf to solve this in PHP. I keep failing the thrid test case (Testcase 2). I think its the round function as it keeps round up but it should round down. The amount when calculated is £22.31. When its out put it rounding to £23. Do you know how to fix this.