c# round up return int code example
Example 1: c# round number up
double number = 1.5362
int ceiling = Math.Ceiling(number)
//rounds number to 2
Example 2: round to int 32 c#
Convert.Toint64(number)
double number = 1.5362
int ceiling = Math.Ceiling(number)
//rounds number to 2
Convert.Toint64(number)