c# divide round down code example Example: c# round number down double number = 1.5362 int floored = Math.Floor(number) //rounds number to 1