I am looking to round decimal, 0.1 to 0.4 round down and 0.5 to 0.9 round up tried these but for some reason if value is 4.5 it rounds to 4 and not 5 all other values work fine. 3.5=4.0 , 5.5=6.0 but 4.5 =4.0 expecting 5.0
Math.Round(value / 2)
Math.Round(Math.Round(value / 2),0, MidpointRounding.AwayFromZero)