How can I multiply two decimals and round the result down to 2 decimal places?
For example if the equation is 41.75 x 0.1 the result will be 4.175. If I do this in c
As of .NET Core 3.0 and the upcoming .NET Framework 5.0 the following is valid
.NET Core 3.0
.NET Framework 5.0
Math.Round(41.75 * 0.1, 2, MidpointRounding.ToZero))