Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
hello everyone, I need your advice: why does rounding work incorrectly when entering "3", what needs to be corrected?
1 ответ
+ 1
Try this :
Console.WriteLine("{0:0.00}",sell.Totalcost());
And Don't round in method or round to 3 places..