C# round doubles code example
Example 1: c# round number up
double number = 1.5362
int ceiling = Math.Ceiling(number)
//rounds number to 2
Example 2: c# round double
Math.Round(1.23)
double number = 1.5362
int ceiling = Math.Ceiling(number)
//rounds number to 2
Math.Round(1.23)