c# does int round up or down code example
Example 1: c# round number down
double number = 1.5362
int floored = Math.Floor(number)
//rounds number to 1
Example 2: c# round number up
double number = 1.5362
int ceiling = Math.Ceiling(number)
//rounds number to 2