decimal val = 12345.2839M; if ( Math.Round(val) == val ) { return Math.Round(val) } return Math.Round(val) + 1;