I have some decimal input from my DataGridView; let's say 4,3
.
I want to compare if it is between 3,5
and 4,4
.
How should I write the numbers 3,5
and 4,4
in my code?
With my current attempt, I get some errors like
; expected
} expected
Operator || cannot be applied
I tried with Cultureinfo but I do not know how exactly use it.
Here is my code so far:
var updateLabStar = db.PatientLab.Where(x => x.BloodUrinId == item.BloodUrinId).FirstOrDefault();
if (Convert.ToDecimal(Result) < 3,5 || Convert.ToDecimal(Result) > 4,4)
{
updateLabStar.Interval = updateLabStar.Result + " *";
db.SaveChanges();
}