0

hello everyone, I need your advice: why does rounding work incorrectly when entering "3", what needs to be corrected?

https://code.sololearn.com/cJxcwIC6m09b/?ref=app

6th Dec 2022, 3:43 PM
ŠžŠ»ŠµŠ³ ŠœŠ°ŠŗŠ°Ń€Š¾Š²
ŠžŠ»ŠµŠ³ ŠœŠ°ŠŗŠ°Ń€Š¾Š² - avatar
1 Answer
+ 1
Try this : Console.WriteLine("{0:0.00}",sell.Totalcost()); And Don't round in method or round to 3 places..
6th Dec 2022, 4:26 PM
Jayakrishna šŸ‡®šŸ‡³