Im getting totally wrong when calling CorrectDecimals with the following parameters:
203,30 - 203,00. Gives me: 0.30000000000001137 (the variable double d). With my mathematical skills it should just be 0.3
string a = CorrectDecimals("203,30", "203,00", "12");
public static string CorrectDecimals(string unitPrice, string netAmount, string length)
{
double unitP = (Double.Parse(unitPrice));
double netAmoun = (Double.Parse(netAmount));
double d = unitP - netAmoun;