Round up a number to highest 10s place

8/6/2014 8:41:54 AM

0 Kicks, 67 Views

Recently we faced a problem that we need to round-up a number to greatest 10s place. For ex: we needed to round-up a number as follows 1023 -> 2000 37911 -> 40000 912345 –> 1000000 First we checked Math.Round(). But it didn't solve our problem. Math.Round() supports only rounds a value to the nearest integer or to the specified number of fractional digits. Further checking we come up a solution by using Math.Ceiling() method.