I have the number 12.1799999 and it should become 12.17 How does it work in c#?
I have the number 12.1799999 and it should become 12.17 How does it work in c#?
If you intent to round down, then use Math.Floor(number, amountOfDecimals)
amountOfDecimals should be 2 in your case