Round Number - CSharp System

CSharp examples for System:Math

Description

Round Number

Demo Code


using System;//  w w  w .  j  a  v a 2 s  .c o m

public class Main{
        public static double RoundNumber(int number, int deviser)
        {
            var result = Math.Round(number / (double)deviser, 0);

            return result;
        }
}

Related Tutorials