551425.451078772

the above no needed to round off to 551426

..

but when is Math.roundoff ..... i get only 551425.45 or 551425

the above no needed to round off to 551426

..

but when is Math.roundoff ..... i get only 551425.45 or 551425

**double d = 551425.451078772;
int i = (int)Math.Ceiling(d);**

**If you want to round to the nearest int:**

**int rounded = (int)Math.Round(precise, 0);**

**You can also use:**

**int rounded = Convert.ToInt32(precise);**

**Which will use Math.Round(x, 0); to round and cast for you. It looks neater but is slightly less clear IMO.**

Hello,

Here is simple solution for you

`decimalVar.ToString (`

`"#.##"`

`);`

`//var decimalVar is your variable name`

Hope this helps you

Hello,

try following approach,

**string strNumber = "551425.451078772";**

strNumber = strNumber.ToString("#.##");

Hope this helpful;

try following approach,

strNumber = strNumber.ToString("#.##");

Hope this helpful;

Use Math.Ceiling Method, Returns the smallest whole number greater than or equal to the specified number.

Math.Ceiling(551425.451078772) gives 551426

Math.Ceiling(551425.451078772) gives 551426